MediumThe difficulty is Medium, because the solution requires complex reasoning involving multiple steps such as joining multiple tables to aggregate city-level and country-level customer data. It also involves calculating averages and filtering based on those averages, which adds layers to the logic beyond basic querying.
ID 2055
0
Write a query that will return all cities with more customers than the average number of customers of all cities that have at least one customer.
This question is part of a paid planUnlock the full question bank, official solutions and other users’ approaches.Unlock this question5-day money-back guarantee · Cancel anytime