Skip to content
Exercise · Final project: interview tasks · lesson 6 of 8

Exercise: the top three items of each shop

Write a query that finds, for each shop, the three menu items with the highest revenue; when revenues are equal, all the items that share a place are in the result. Three columns: shop is the shop's name, item is the item's name, revenue is the item's revenue at that shop.