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 country_id, show the total no of locations in that country from the locations table
Source code
Copy code
SELECT COUNTRY_ID, COUNT(LOCATION_ID) FROM locations GROUP BY COUNTRY_ID;
Join the discussion
Add your comment
Your name
Comment
Post comment
Add your comment