List:Brisbane MySQL Users Group« Previous MessageNext Message »
From:Scott McClintock Date:August 10 2005 2:53am
Subject:Re: [SPAM] Re: Sort by count
View as plain text  

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 ....................
========================================================================
Thread
Sort by countMark Unwin10 Aug
  • [SPAM] Re: Sort by countScott McClintock10 Aug
    • Re: [SPAM] Re: Sort by countArjen Lentz10 Aug
      • Re: [SPAM] Re: Sort by countScott McClintock10 Aug