ComeçarComece de graça

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;

Este exercício faz parte do curso

Applying SQL to Real-World Problems

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

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;
Editar e executar o código