Created
August 15, 2022 14:51
-
-
Save romain9292/98b6a97f3fd304ddaab974d983f96e4e to your computer and use it in GitHub Desktop.
[Numbering Functions - Row Number 2] Differences between numbering functions in BigQuery using SQL #SQL #BigQuery
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 | |
*, | |
ROW_NUMBER() OVER(ORDER BY revenue DESC) AS row_number | |
FROM | |
`datastic.ranking.base_table`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment