I have the following table named population
:
╔════════════╦════════════╦════════════════╗
║ india ║ hyderabad ║ 50100 ║
║ india ║ delhi ║ 75000 ║
║ USA ║ NewYork ║ 25000 ║
║ USA ║ california ║ 30000 ║
║ india ║ delhi ║ 5000 ║
║ USA ║ NewYork ║ 75000 ║
╚════════════╩════════════╩════════════════╝
I need to write a SQL query to get data in the following format:
╔════════╦═════════╦══════════╗
║ india ║ delhi ║ 80000 ║
║ USA ║ NewYork ║ 100000 ║
╚════════╩═════════╩══════════╝
country name and the city with the highest population where multiple entries of the cities are summed up.