-
-
Save toyeiei/04db492c283a9879ab1a995a057d28b6 to your computer and use it in GitHub Desktop.
SQL for Beginner - GROUP BY P1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- count number of customers by country | |
SELECT | |
country, | |
COUNT(*) AS n | |
FROM customers | |
GROUP BY country; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment