Problems / Row Number Basics / Editorial
ROW_NUMBER() is the simplest window function. It assigns a unique integer to each row within its partition.
ROW_NUMBER()
grade
score
Unlike RANK(), ROW_NUMBER() never produces ties — even if two students have the same score, they get different row numbers.
RANK()
Solve Row Number Basics yourself →