Kodewick
Start learning →
Starter←→0 / 70

Family films

#012StarterSELECT2 min

Someone wants to bring the kids to the cinema this weekend. From the movies table, pick the films whose genre is 'family', with the title and minutes columns.

The tables
movies
idtitlegenreminutesrating
1Robot Summerfamily958
2Dark Lakehorror1106
3Space Palsfamily887
4The Long Roaddrama1429
5Laugh Trackcomedy1015
6Snow Daycomedy927
6 rows
tickets
idmovie_iddayseatsprice
11Fri240
21Sat480
32Fri125
43Sat354
54Sun260
61Sun120
75Sat236
83Sun590
8 rows
query.sql
-- your code here: title and minutes, and WHERE to keep genre = 'family'
SELECT title
FROM movies;
Ctrl + Enter runs too
Result

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