SQL - Find the film title and language name of all films in which ADAM GRANT acted

后端 未结 2 1089
庸人自扰
庸人自扰 2021-01-26 07:20

I\'m having a ton of trouble thinking in terms of SQL on problems like this. I don\'t know how I should be structuring my queries. Should I be joining film on

2条回答
  •  [愿得一人]
    2021-01-26 07:31

    You should use inner join

    SELECT 
       film.title
      , language.name
    FROM film
    INNER JOIN language on film.language_id = language.language_id
    INNER JOIN film_actor on film.film_id = film_actor.film_id
    INNER JOIN actor on actor.actor_id = film_actor.actor_id
    WHERE actor.first_name = 'ADAM'
    AND actor.last_name ='GRANT'
    

提交回复
热议问题