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

Exercise: items over 250 rubles

Write a query to the menu_items table that returns the name and price of every item over 250 rubles: the columns name and price, most expensive first.

  • Pumpkin latte comes first, at 320.00.
  • Flat white costs exactly 250.00 and is not in the result.

Constraints: the result includes items of any category whose price is strictly greater than 250. Such items all have different prices. If there are no such items, the query returns zero rows.

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