ORDEY BY ... Count

DrZoidberg

Registered User.
Local time
Today, 02:42
Joined
Jan 12, 2005
Messages
14
Hi, is there anyway to perform a query and have it order by the count? I thought it was possible but keep getting an error. I'm using the following:

SELECT st_term, COUNT(st_term) AS QueryCount FROM tblSearchTerms GROUP BY st_term ORDER BY QueryCount

Any help would be *hugely* appreciated.

Many thanks.
 
include the count statement not the alias...
 
great, thanks!!
 

Users who are viewing this thread

Back
Top Bottom