select city_name, sum(confirmed_cases) confirmed_cases , sum(recovered_cases) recovered_cases, sum(death_cases) death_cases from cases join dati on dati.code = cases.dati_code group by city_name order by confirmed_cases desc;
-- Code Here- select
- city_name,
- sum(confirmed_cases) confirmed_cases ,
- sum(recovered_cases) recovered_cases,
- sum(death_cases) death_cases
- from cases
- join dati
- on dati.code = cases.dati_code
- group by city_name
- order by confirmed_cases desc;