Loading…
ROW_NUMBER() assigns a unique sequential number to each row.
ROW_NUMBER() OVER(ORDER BY column)
The ORDER BY inside OVER() determines the numbering order.
Rank all products by price (highest first):
Downloading SQL engine… (one-time)
This runs entirely in your browser and is cached for next time.