Skip to content
Exercise · Keys and relationships · lesson 10 of 10

Exercise: item sales

The baristas want to know which menu items sell best. Write a query on the order_items table that returns, for each ordered item, the columns menu_item_id, orders and sold: orders is how many orders held the item, sold how many units of it were sold in all.