Re: Sort by bigger count(*)

From: Date: Wed, 01 Aug 2001 06:32:10 +0000
Subject: Re: Sort by bigger count(*)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60601@lists.php.net to get a copy of this message
> I made a query that uses count(*) > now how can i get the results sorted following the biggest count(*) result? select count(*) as score from foo group by y order by score desc may do the trick... I often have trouble with aggregates not being allowed where I want them or not being able to aggregate on all records, but only display a subset (or vice versa). -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#60601) next »