Skip to content
Exercise · Selecting and sorting · lesson 10 of 10

Exercise: the third page of the menu

The chain's website shows the menu from the cheapest items to the priciest, three items per page, with items of the same price by name in alphabetical order. Write a query to the menu_items table that returns the third page: the columns name and price, in the same order.

  • The first two pages hold six items, from Espresso at 140.00 to Latte at 220.00, and they are not in the result.
  • The third page is Sea buckthorn tea, Hot chocolate and Flat white.

Constraints: all items have different names, but prices may repeat. If the menu has fewer than nine items, the third page has fewer than three rows, and with six items or fewer it has none.

menu_page.sql — sql
sql · 4 lines
Ctrl+Enter run · Esc leave editor