Skip to content

Instantly share code, notes, and snippets.

@bartubozkurt
Created June 11, 2021 19:38
Show Gist options
  • Select an option

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

Select an option

Save bartubozkurt/c421ec68e36d40ecdcdd4861339a8b9a to your computer and use it in GitHub Desktop.
The INNER JOIN statement is used to join tables with a common value.
SELECT city.name, country.name
FROM city
INNER JOIN country
ON city.country_id = country.id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment