Back Practice ↓

Related Practice & In-Depth Concepts

↑ Read lesson

Task:The CFO needs an aggressive 'Shipped Revenue' report. Write a query returning: 1) `user_full_name` (First and last name concatenated, all UPPERCASE). 2) `customer_tier` (Use CASE: if `is_premium` is true then 'VIP', else 'Standard'). 3) `total_shipped_spend` (The SUM of quantity * unit_price). You must JOIN the 4 tables. You must FILTER ONLY for 'shipped' orders. You must GROUP BY the user to get their total spend. Sort by total_shipped_spend DESC.
SQL Query Editor
No results returned. Press Run Query (or Cmd/Ctrl + Enter) to execute.