SOLVE
LATER
Hackerearth wants to give some goodies to the User with maximum ratings of each country in its database. The details are required for the same. To send goodies, the name of the user, its country and its ratings are required. The data should be sorted according to the Country's name.
Table : Details
Field | Type |
---|---|
Name | text |
Country | text |
Rating | int |
Field | Type |
---|---|
Name | text |
Country | text |
Rating | int |
Sample Details Table:
Name | Country | Rating |
---|---|---|
Aj | India | 2400 |
Jaimi | India | 2500 |
Gennay | Russia | 3200 |
Petry | Russia | 3100 |
Name | Country | Rating |
---|---|---|
Jaimi | India | 2500 |
Gennay | Russia | 3200 |