Better still: SELECT DISTINCT '|' + City + '|' FROM [table]
Hopefully that will point out where your whitespace might be. Neil On 4/28/06, Ben Nadel <[EMAIL PROTECTED]> wrote: > > Ken, > > Your data might be different... Try: > > SELECT DISTINCT > City > FROM > [table] > > > Make sure the cities are only listed once. If they are NOT, then you > probably have inconsistent data (ie. extra spaces or something). > > ....................... > Ben Nadel > www.bennadel.com > -----Original Message----- > From: Ken [mailto:[EMAIL PROTECTED] > Sent: Friday, April 28, 2006 12:08 PM > To: CF-Talk > Subject: Re: Counting record repeats > > Hi. I tried all the queries suggested by Ian, Ben, Gert and Steve above. > Still getting this: > City CityCount > Los Angeles 1 > Boston 1 > New York 1 > Los Angeles 1 > New York 1 > New York 1 > > Once again, to make it clear i am looking for this resultset: > City CityCount > Los Angeles 2 > Boston 1 > New York 3 > > Thanks for trying guys. But no success as yet. > > - K > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239060 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

