Only this week, get the SQL Complete Track of 9 courses in a special prize of $330 $89!
Introduction
Nested CTEs
Summary
13. Exercise 1

Instruction

All right, let's tackle the first question!

Exercise

Find the maximum number of items sold in each city on each day. Then, calculate the average maximum number of items sold in each city across all days. Finally, count the number of cities where the average maximal number of items sold is greater than 18. Name the last column CityNumber.