Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

home / study / engineering / computer science / computer science questions and answers / sql database queries question: consider the following database which has

home / study / engineering / computer science / computer science questions and answers / sql database queries question: consider the following database which has the following relations: ...

Question: SQL Database queries question: Consider the following database which has the following relations:...

Edit question

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:

3. (a) Find names of movie stars who starred in no movies produced by Columbia Pictures in 2017 (Using the EXCEPT operator)

(b) Find names of movie stars who starred in no movies produced by Columbia Pictures in 2017 (Without using the EXCEPT operator)

(c) Find movie stars who only star in movies that are produced by producers that have the same address as them.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

What is electric dipole explain with example

Answered: 1 week ago