Skip to content

Instantly share code, notes, and snippets.

@bartubozkurt
Created June 13, 2021 09:26
Show Gist options
  • Save bartubozkurt/91dfc9aeeb2506eabb031ad7b1a88aa5 to your computer and use it in GitHub Desktop.
Save bartubozkurt/91dfc9aeeb2506eabb031ad7b1a88aa5 to your computer and use it in GitHub Desktop.
lists the number of customers in each country. Only include countries with more than 5 customers
SELECT COUNT(CustomerID), Country
FROM Customers
GROUP BY Country
HAVING COUNT(CustomerID) > 5 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment