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:
- Find the pid of producers who produce only Action movies.
- Find the pid of producers who produce an Action movie and a Comedy movie.
- 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
Get step-by-step solutions from verified subject matter experts
