mysql - SQL - Find the film title and language name of all films in which ADAM GRANT acted -
i'm having ton of trouble thinking in terms of sql on problems this. don't know how should structuring queries. should joining film on film_actor , join on actor? or should other way around?
all i've been able query joins actor , film_actor name adam grant i'm lost on go here.
select * (actor join film_actor on actor.actor_id=film_actor.actor_id) first_name = 'adam' , last_name = 'grant' i've tried doing join these results films, i'm getting issues syntax.
select title (actor join film_actor on actor.actor_id=film_actor.actor_id) first_name = 'adam' , last_name = 'grant' join film on film.actor_id = actor_id
you should use inner join
select film.title , language.name 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 actor.first_name = 'adam' , actor.last_name ='grant' 
Comments
Post a Comment