Loading…
Rank customers by lifetime net value: successful payments on their orders minus refunds on their orders.
Return three columns: customer_id, net_value rounded to 2 decimals, and using (). Return the top 5 ordered by , then .
value_rankRANKcustomersvalue_rankcustomer_idCreate 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.