Get startedGet started for free

Fix this query - intent

Using the four opportunities you've identified you will now clarify the intent of this query, one step at a time.

SELECT x1.customer_id, x1.rental_date, x1.return_date 
FROM rental x1
JOIN inventory x2
    ON x1.inventory_id = x2.inventory_id
JOIN film x3
    ON x2.film_id = x3.film_id
WHERE x3.length < 90;

This exercise is part of the course

Applying SQL to Real-World Problems

View Course

Hands-on interactive exercise

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

SELECT x1.customer_id, x1.rental_date, x1.return_date 
FROM rental x1
JOIN inventory x2
  ON x1.inventory_id = x2.inventory_id
JOIN film x3
  ON x2.film_id = x3.film_id
WHERE x3.length < 90;
Edit and Run Code