I have a table with all U.S. zip codes. each row contains the city and state name for the zip code. I\'m trying to get a list of cities that show up in multiple states. This
SELECT City, Count(City) As theCount
FROM (Select City, State From tblCityStateZips Group By City, State) As C
GROUP By City
HAVING COUNT Count(City) > 1
This would return all cities, with count, that were contained in more than one state.