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.

This exercise is part of the course

Data-Driven Decision Making in SQL

View Course

Exercise instructions

  • Select from table renting all movie rentals from 2018.
  • Filter only those records which have a movie rating.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

SELECT *
FROM renting
WHERE date_renting ___ '2018-01-01' ___ '2018-12-31' -- Renting in 2018
AND rating ___; -- Rating exists