You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
187 B
SQL

/*25. Write a query in SQL to display the country ID and number of cities in that country we have.*/
SELECT country_id, COUNT(*)
FROM locations
GROUP BY country_id;