Loading

T11 SQL · Lesson 3

Games: Sorting and limiting

Choose the right option, fill in the blanks, write small pieces of code and fix broken ones. Code runs in a safe box inside this page.

Solved 0 of 48 items in this lesson.

1 / 26

ledger.db holds eight gauges: boiler (1, Engine Hall, C, 96.5), pump (2, Engine Hall, bar, 4.2), fan (3, Engine Hall, rpm, 1200.0), chimney (4, Couriers' Yard, C, NULL), pendulum (5, Clock Tower, s, 2.0), kettle (6, Couriers' Yard, C, 88.0), bell (7, Clock Tower, Hz, 440.0) and valve (8, Engine Hall, bar, 4.2). What does this print?

bash
sqlite3 -list ledger.db "SELECT name FROM gauges ORDER BY reading DESC LIMIT 1;"

Back to the lesson