Hi guys,
I need help with the below. Basically i need to rank each city in each country according to how many units were sold. For example London is ranked first in the UK because it has the most units in the UK. Guangzhou is also ranked first because it has the most units in china. Similarly with Paris. However, Manchester and Glasgow have the same number of units. instead of them both being ranked second i want Glasgow to be second and manchester third because glasgow has the most revenue. Similarly i want Beijing ranked second and jinling 3rd because beijing has the most revenue.
Country City State Units Revenue Rank I want
United Kingdom London 50 6164 1
China Guangzhou 48 6365 1
France Paris 47 7873 1
United Kingdom Manchester 46 8369 3
United Kingdom Glasgow 46 9796 2
United Kingdom Edinburgh 45 5420 4
United Kingdom Birmingham 44 9905 5
United States Buffalo NY 14 5427 1
China Beijing 10 6614 2
China Jinling 10 5400 3
Thanks for you help.
Thanks
Bookmarks