From: Scott McClintock Date: August 10 2005 2:53am Subject: Re: [SPAM] Re: Sort by count List-Archive: http://lists.mysql.com/ug-brisbane/10 Message-Id: <42F96C14.4060708@netoptions.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Arjen Lentz wrote: > Hi Scott, Mark, > > On Wed, 2005-08-10 at 10:26, Scott McClintock wrote: > >>Two simple solutions: >> >>a) >>SELECT count(software_name) software_count, software_name..... >>order by software_count >> >>b) >> >>.... order by 1 ..... > > > That's evil. I believe the SQL standards committee is considering > ripping that out. > I know :) Which is why its option b! But that aside, sometimes the evil solution is the best solution... regardless of what the purists say! (but not in this case ;) regards Scott -- ======================================================================== Scott McClintock Email: smcclintock@stripped General Manager Phone: 07 3842 8888 Technical Solutions Fax: 07 3842 8899 NetOptions Pty Ltd Web: http://www.netoptions.com.au Brisbane, Australia ------------------------------------------------------------------------ ............... Simple Solutions in a Complex World .................... ========================================================================