Created
September 2, 2022 17:11
-
-
Save romain9292/56c2d7ede39600707a3be180ee63d656 to your computer and use it in GitHub Desktop.
[Numbering Functions - Row Number 7] 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 | |
*, | |
ROUND(PERCENT_RANK() OVER(ORDER BY revenue)*100,2) AS pct_rank, | |
FROM | |
`datastic.ranking.base_table`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment