Skip to content
Advertisement

How to find unique count of each value from a table?

How to count the occurrence of each city within a range? I am a beginner to SQL.

I have a table like this:

Using the SQL query:

I am able to extract the city names which lie between the range of 3 and 9.

How can I get the occurrence of each city within the range:

Advertisement

Answer

try this

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement