Session Ready
Exercise

Numbering Olympic athletes by medals earned

Row numbering can also be used for ranking. For example, numbering rows and ordering by the count of medals each athlete earned in the OVER clause will assign 1 to the highest-earning medalist, 2 to the second highest-earning medalist, and so on.

Instructions 1/2
undefined XP
  • 1
  • 2
  • For each athlete, count the number of medals he or she has earned.