in reply to ORDER BY COUNT(*)?
Should work, though it may need an "AS" between the COUNT(*) and the col2 (an alias for the column) depending on the RDBMS (I don't know much about MySQL I'm afraid).SELECT DISTINCT surveys, COUNT(*) col2 FROM neverland GROUP BY surveys ORDER BY col2 DESC
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: ORDER BY COUNT(*)?
by Caillte (Friar) on Mar 20, 2002 at 15:48 UTC | |
by aersoy (Scribe) on Mar 20, 2002 at 18:40 UTC | |
Re(2): ORDER BY COUNT(*)?
by dmmiller2k (Chaplain) on Mar 21, 2002 at 04:28 UTC |