Created
May 12, 2017 00:12
-
-
Save vincentdesmares/81a359af69a6f4b90bb87327aaca0cc5 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 | |
*, | |
count(*) | |
OVER report_by_category AS count, | |
count(*) | |
OVER (report_by_category | |
ORDER BY salary) AS ordered_count | |
FROM | |
employe | |
WINDOW | |
report_by_category AS ( | |
PARTITION BY | |
category | |
) | |
LIMIT 5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment