Dan,

The correct syntax is:

SELECT ZipCode, COUNT (*) FROM tablename +
GROUP BY ZipCode

Bill

On Thu, 26 Sep 2002 11:45:11 -0500, Dan wrote:

>I'm trying to write a line of code which displays unique data from a 
text column (zipcodes), followed by a count of each row, and ordered 
from highest to lowest. I've tried TALLEY, which works except that it's 
not ordered. I've also tried a SELECT DISTINCT (ZipCode), COUNT 
(ZipCode), but am told the command is illegal. I also tried a SELECT 
ZipCode, Count (ZipCode) GROUP BY COUNT (ZipCode).... and also 
received an error message.





================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to