Select from renting
Only some users give a rating after watching a movie. Sometimes it is interesting to explore only those movie rentals where a rating was provided.
Latihan ini adalah bagian dari kursus
Data-Driven Decision Making in SQL
Petunjuk latihan
- Select from table
rentingall movie rentals from 2018. - Filter only those records which have a movie rating.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
SELECT *
FROM renting
WHERE date_renting ___ '2018-01-01' ___ '2018-12-31' -- Renting in 2018
AND rating ___; -- Rating exists