Select the country whose sum of population is 80% of total population of whole country

 Country|Population

A|1234
A|2134
B|2342
B|2193

like this there are 30 country and we have to calculate top populated countries which will occupy 80% population of all the country together. for example

Comments

Popular posts from this blog

Sequence

Stored Procedure