programming-examples/sql/SQLMovieDatabase/12. Write a query in SQL to list all the information of the actors who played a role in the movie 'Annie Hall'.sql

11 lines
292 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*12. Write a query in SQL to list all the information of the actors who played a role in the movie 'Annie Hall'.*/
SELECT *
FROM actor
WHERE act_id IN(
SELECT act_id
FROM movie_cast
WHERE mov_id IN (
SELECT mov_id
FROM movie
WHERE mov_title='Annie Hall'
));