Created
November 1, 2017 18:18
-
-
Save mattm/33300024e20b6c3962c8c6817fc966ab to your computer and use it in GitHub Desktop.
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
SELECT user_id, COUNT(*) AS post_count | |
FROM posts | |
GROUP BY user_id | |
+---------+------------+ | |
| user_id | post_count | | |
+---------+------------+ | |
| 1 | 3 | | |
| 2 | 2 | | |
+---------+------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment