Last active
May 12, 2017 00:11
-
-
Save vincentdesmares/23c20d6700ec1fc680078d72ed46d52f 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 | |
*, | |
min(salary) | |
OVER report_by_category, | |
avg(salary) | |
OVER report_by_category, | |
max(salary) | |
OVER report_by_category | |
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