T11 SQL · Lesson 4
Games: Aggregates and grouping
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 52 items in this lesson.
1 / 30
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 COUNT(*) FROM gauges;"