Introduction
Ranking functions
Selecting n-th row
Revision

Instruction

Perfect! It's now time to do an exercise where you will use all of the functions together and notice the subtle differences between them.

Exercise

For each game, show its name, genre and date of release. In the next three columns, show RANK(), DENSE_RANK() and ROW_NUMBER() sorted by the date of release.

Stuck? Here's a hint!

An example ranking function from this query:

RANK() OVER(ORDER BY released)

Console

Code editor

Result

TableConsole