Skip to content
Exercise · Databases and your first query · lesson 6 of 10

Exercise: names, categories and prices

Write a query to the menu_items table that returns three columns in this order: name, category and price.

  • The espresso row in the result: Espresso, coffee, 140.00.
  • Hot chocolate has no category: in the result that cell is empty.

Constraints: the result includes every menu item, the ones with no category too. The order of rows does not matter.

The expected rows for each check are shown in the tests tab.

menu.sql — sql
sql · 3 lines
Ctrl+Enter run · Esc leave editor