We use analytics and advertising cookies to understand how the site is used and whether our ads on Facebook and Instagram work. They are set only if you accept. See our Privacy Policy for details.
Return the order 'id' as 'order_id', the 'customer_id', and the 'amount' for every order whose 'amount' exceeds the average order amount for that same customer. Use a correlated subquery.