Kodewick
Start learning →
Starter←→0 / 70

The tea corner

#051StarterText, LIKESELECT2 min

The shop wants to put all its teas in one corner. From products, pick the things whose name has tea in it (anywhere), with the name and price columns.

The tables
products
idnamecategorypricestock
1Milk teadrink1230
2Lemon waterdrink850
3Cheesecakecake256
4Cookiesnack580
5Browniecake180
6Iced coffeedrink1520
7Chipssnack740
8Fruit tartcake284
8 rows
query.sql
-- your code here: WHERE name LIKE … to keep the names with tea in them
SELECT name, price
FROM products;
Ctrl + Enter runs too
Result

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