Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the Movies, Stars, Studios Database with the following 5 relations: Movies (title, vear, length, genre, studioName, producerC#) Stars (movieTitle, movieYear, starName ) MovieStar
Consider the Movies, Stars, Studios Database with the following 5 relations: Movies (title, vear, length, genre, studioName, producerC#) Stars (movieTitle, movieYear, starName ) MovieStar (name, address, gender, birthdate) MovieExec (name, cert#, address, networth) Stud (name, address, presC#) where movie executives can be movie producers or studio presidents, and they are identified by unique certificate numbers. Assume that names are unique, there is one producer of each movie and there is one president of each studio. (Please ask for clarifications if you have questions about the relations and/or the semantics of the following queries!). Express the queries below using SQL. 1. Find names of the producers of "Emma Stone" movies (1.e. movies having Emma Stone as a star) without using subqueries. 2. Find pairs of names consisting of a movie star and a movie executive sharing the same address. 3. Find names of movie stars who starred in no movies produced by "Sony" studios in 2019 (with using "EXCEPT" operator). 4. Find names of movie stars who starred in no movies produced by "Sony" studios in 2019 (without using "EXCEPT" operator). 5. Find the titles of movies that have been used for two or more movies. 6. Find the number of movies made by "Sony" studios that "Rami Malek" stars in. 7. Find the studio names of movies "Emma Stone" stars in, and output for each such studio, the studio name and the number of "Emma Stone" movies produced by that studio. S. Find names of movie stars who star in only movies made by "Sony". 9. Find the Studio names, and names of studio presidents of studios which have "Emma Stone" starring in every movie the studio produce. 10. Find names of producers of "Emma Stone" movies (ie. movies having Emma Stone as a star), using a subquery in FROM.
Step by Step Solution
★★★★★
3.37 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
1 Find names of the producers of Emma Stone movies SELECT DISTINCT mename FROM MovieExec me Movies m Starts s WHERE mproducerC mecert AND smovieTitle ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started