0
Sql count
How can i select the differences between occurance of rows in a table and the occurance of a distinct rows in a table. Heres what i have tried.. select count(city) from station-select count(distinct city) from station
5 Answers
+ 2
Select count(field) - count(distinct field) as diff will work on most databases.
+ 3
Ipang Sandra Meyer thank you guyz
+ 2
Ipang no it didnt work
+ 2
Ipang i want to see the number of the records based on their cities (can contain duplicates) - no of records with no duplicate city name
+ 2
Sandra Meyer thank you it works