The CFO wants to spot «big tickets» — orders whose total beats the average across paid orders (status = 'paid'). Cancelled orders don't go into the average, otherwise it'd be skewed. Return the id and total of such orders, sort by total descending.
status = 'paid'
id
total
Sign in to see submission history
Sign in to use AI Mentor
Your query result will appear here