Kodewick
Start learning →
Starter←→0 / 70

All the cats

#014StarterSELECT2 min

It's vaccine day for cats at the vet. From the pets table, pick the pets whose kind is 'cat', with the name and age columns.

The tables
owners
idnamecityphone
1LenaOslo555-0101
2MarcoRomeNULL
3PriyaOslo555-0103
4OmarCairoNULL
5SofiaRome555-0105
5 rows
pets
idnamekindageweightowner_id
1Biscuitdog3121
2Mochicat541
3Pepperdog8202
4Nemofish1NULL3
5Lunacat233
6Rexdog1130NULL
7Kiwibird4NULL5
8Tofucat75NULL
8 rows
query.sql
-- your code here: name and age, and WHERE to keep kind = 'cat'
SELECT name
FROM pets;
Ctrl + Enter runs too
Result

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