Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Selecting n-th row
18. Create a ranking
Summary

Instruction

What is the name of the game with the EditorRating rank of 2? We'll use a two-step T-SQL query to find the answer.

In step 1, we create a ranking, just as we did in the previous section:

SELECT
  Name,
  RANK() OVER(ORDER BY EditorRating DESC) AS Rank
FROM Game;

This step should be quite simple by now. Let's run it to confirm that it works.

Exercise

Click Run and check code to run the template.