Created
April 12, 2019 18:02
-
-
Save log4code/f5b867adad375c4b90bbdddb4d913b1f 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 | |
company_name, | |
sale_date, | |
total_amount, | |
ROW_NUMBER() OVER(PARTITION BY company_id ORDER BY total_amount DESC) AS day_rank | |
FROM | |
company_sales |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment