Skip to content

Instantly share code, notes, and snippets.

@bartubozkurt
Created June 11, 2021 18:26
Show Gist options
  • Select an option

  • Save bartubozkurt/2566904409ba7ea7f9e7c7f4c97bbd5b to your computer and use it in GitHub Desktop.

Select an option

Save bartubozkurt/2566904409ba7ea7f9e7c7f4c97bbd5b to your computer and use it in GitHub Desktop.
Finds cities in countries that have a population above 20M
SELECT name FROM city
WHERE country_id IN (
SELECT country_id
FROM country
WHERE population > 2000000;
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment