A real database
SQLite runs inside your browser, the same engine that sits in every phone. Error messages are the real ones.
SELECT nme FROM products;no such column: nme
Short levels in a little game shop. You write real SQL, a real database answers, and every answer is checked by its result.
Your first queries: read a table, filter and sort rows, then change data and build a table.
Stars: 3 without an error, 2 with up to two, 1 with more.
Ask the database for data: whole tables, single columns, calculated values.
0/4
Keep only the rows you need with WHERE: comparisons, AND and OR, lists, patterns and missing values.
0/6
Put rows in order with ORDER BY and keep just the first few with LIMIT.
0/4
Add, change and remove rows, then build a table of your own.
0/4
SQLite runs inside your browser, the same engine that sits in every phone. Error messages are the real ones.
SELECT nme FROM products;no such column: nme
There is more than one right query. Yours counts if it returns the right rows, however you wrote it.
SELECT name FROM products
WHERE price < 20;SELECT name FROM products
WHERE NOT price >= 20;| nametext |
|---|
| Memory Card |
| Space Lords |
| Pixel Puzzle |
Same rows, so both count.
Every answer is also checked against data you cannot see, so a query that only fits the rows on screen does not pass.
Task: list the products that are sold out.
SELECT name FROM products
WHERE id IN (3, 5, 8);| nametext |
|---|
| Arcade Stick |
| Pocket Glow |
| Space Lords |
| nametext |
|---|
| Handheld Pro |
| Link Cable |
| Home Console X |