Archived
Given the following 'movies' and 'directors' tables:
movies:
| movie_id | title | director_id |
|----------|---------|-------------|
| 1 | Movie A | 1 |
| 2 | Movie B | 2 |
| 3 | Movie C | 1 |
directors:
| director_id | name |
|-------------|-------------|
| 1 | Director 1 |
| 2 | Director 2 |
Which SQL query retrieves the titles of the movies and the names of their directors?
0
Community Evaluations
Haithem Turki
24/07/2024
Les 2 requĂȘtes donnent le mĂȘme rĂ©sultat :
SELECT movies.title, directors.name FROM movies INNER JOIN directors ON movies.director_id = directors.director_id;
SELECT movies.title, directors.name FROM movies, directors WHERE movies.director_id = directors.director_id;
Elles sont correctes , est ce que pour ce tests il faut donner une seule réponse ou cocher toutes les bonnes réponses ?
Similar QuestionsMore questions about SQL