SELECT b.city_name kota, SUM(a.confirmed_cases) confirmed_cases, SUM(a.recovered_cases) recovered_cases, SUM(a.death_cases) death_cases FROM cases a JOIN dati b ON a.dati_code = b.code GROUP BY kota ORDER BY confirmed_cases DESC
-- Code Here- SELECT
- b.city_name kota,
- SUM(a.confirmed_cases) confirmed_cases,
- SUM(a.recovered_cases) recovered_cases,
- SUM(a.death_cases) death_cases
- FROM
- cases a
- JOIN
- dati b
- ON a.dati_code = b.code
- GROUP BY
- kota
- ORDER BY
- confirmed_cases DESC