Loading…
Select order_id, total_amount, and a rank of each order by total_amount descending, where the highest total_amount gets rank 1 (use RANK). Show these three columns, highest amount first.
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.