Here is the criteria I am looking for (1) rank data by region (2) include top 3 for two regions and top 5 for other region
I am able to get criteria (1) using the query below:
select rank() over (partition by region order by sales_score desc) rank_by_region,
region,
sales_person
sales_score
from sales_owner.data
If I get three regions (North, South, West). How would I order the rank that the output would include top 3 for North and South and top 5 for West?
Any help greatly appreciated!