Loading…
Use a ranking function like RANK or DENSE_RANK, ordering by total_amount descending.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.