Kodewick
Start learning →
Starter←→0 / 70

Sold out

#011StarterSELECT2 min

The shop assistant is writing a restock list. From the products table, pick the things whose stock is 0, with just the name column.

The tables
products
idnamecategorypricestock
1Milk teadrink1230
2Lemon waterdrink850
3Cheesecakecake256
4Cookiesnack580
5Browniecake180
6Iced coffeedrink1520
7Chipssnack740
8Fruit tartcake284
8 rows
query.sql
-- your code here: the name column, and WHERE to keep stock = 0
SELECT name
FROM products;
Ctrl + Enter runs too
Result

Run shows what your query gives. When it looks right, Submit.