The ID count might be cuasing the problem. Try:

SELECT
  City,
  ( COUNT(*) ) AS city_count
FROM
  [table]
GROUP BY
  City

.......................
Ben Nadel 
www.bennadel.com

-----Original Message-----
From: Ken [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 28, 2006 11:46 AM
To: CF-Talk
Subject: Re: Counting record repeats

Hi again. I tried the query you gave but all I am getting is this:
City                    CityCount
Los Angeles     1
Boston          1
New York                        1
Los Angeles     1
New York                        1
New York                        1

Please help. What I need is this resultset:
City            CityCount
Los Angeles     2
Boston          1
New York                        3

Thanks,
K



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239053
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to