A city-operations review opens with the three biggest revenue markets, strongest first.
From city_sales, return city and total_revenue, restricted to the top 3 cities by revenue and ordered from highest to lowest. Row order matters for this question.
Sample data
More Aggregate Functions questions
Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.
Explore the program