Question: With the following relations: Producers( pid : integer, pname : string, address : string) Movies( mid : integer, mname : string, category : string) Theaters(

With the following relations:

Producers(pid: integer, pname: string, address: string)

Movies(mid: integer, mname: string, category: string)

Theaters(pid: integer, mid: integer, price: real)

Write the following SQL queries:

  1. Find the pid of producers who produce only Action movies.
  2. Find the pid of producers who produce an Action movie and a Comedy movie.
  3. Find the pid of producers who produce an Action movie or a Comedy movie.

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!