A beginner SQL walkthrough in the free DB Fiddle: total revenue per customer with GROUP BY, sort the biggest to the top, keep the top three with LIMIT and list key accounts with HAVING.
This lesson needs JavaScript. You can read every step here: SQL: Top Customers and Key Accounts with GROUP BY and HAVING: the step-by-step guide, or browse all free AI automation tutorials.