I have a table like
Name CountryCode
kabul AFG
herat AFG
haag NLD
tilburg NLD
breda NLD
mumbai IND
delhi IND
chennai IND
if want to get the count of city for CountryCode AFG so i will right query
select Count(Name) from city where CountryCode = AFG; and i will get the result
Count(Name)
2
but if I want count for CountryCode AFG,NLD,IND in single query like
count(Name)
2
3
3
How should I write the query to get above result?
haagin the netherlands. the netherlands does have a city calledden haag