Question: SQL Database queries question: Consider the following database which has the following relations: Movies ( title, year, length, genre, studioName, producer_id ) Stars ( movieTitle,

SQL Database queries question:

Consider the following database which has the following relations:

Movies ( title, year, length, genre, studioName, producer_id )

Stars ( movieTitle, movieYear, starName )

MovieStar ( name, address, gender, birthdate )

MovieExec ( name, id, address, networth )

Studio ( name, address, president_id )

Where movie executives can be producers or studio presidents and they have unique id numbers. Assume that names of people are unique, there is one producer of each movie, and each studio has one president.

Express the following queries using SQL: 2. (a) Find names of movie stars who only star in movies produced by producers who have a less than average networth.\

(b) Find years where more than 3 horror movies were released

(c) Find names of movie execs who produce movies longer than 120 minutes or star Kit Harrington

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!