SQL exercises on movie Database: Find the cast list for the movie Chinatown
SQL movie Database: Join Exercise-19 with Solution
19. Write a query in SQL to find the cast list for the movie Chinatown.
Sample table: movie
Sample table: movie_cast
Sample table: actor
SELECT a.act_fname, a.act_lname FROM movie_cast c JOIN actor a ON c.act_id = a.act_id Where mov_id = ( SELECT mov_id FROM movie Where mov_title = 'Chinatown');
act_fname | act_lname ----------------------+---------------------- Jack | Nicholson (1 row)
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a query in SQL to find the first and last name of an actor with their role in the movie which was also directed by themselve.
Next: Write a query in SQL to find the movie in which the actor appeared whose first and last name are 'Harrison' and 'Ford'.
What is the difficulty level of this exercise?
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework