Skip to main content
Code To HaveN
Toggle navigation
Home
Categories
Online Judge
YouTube Tutorials
About
Search tutorials and solutions
Search
Categories
/
MySQL
/
Group By
Solved programming problem
For each city, show the total no of locations in that city from the locations table
Source code
Copy code
SELECT CITY, COUNT(*) FROM locations GROUP BY CITY;
Join the discussion
Add your comment
Your name
Comment
Post comment
Add your comment