62. Relative Product Popularity
Rank products within categories based on quantity sold as a percentage.
Xorthax wants to understand how popular each product is relative to others in its category. Write a query that assigns each product a relative position based on total quantity sold, expressed as a percentage of its category's ranking.
Explanation: