Question: Code (a, b) in SQL Q1. Consider the following tables (relations) that contain information (all stored as names) about persons visiting theatres, movies played by

Code (a, b) in SQL

Code (a, b) in SQL Q1. Consider the following tables (relations) that

Q1. Consider the following tables (relations) that contain information (all stored as names) about persons visiting theatres, movies played by theatres, movies liked by persons, and players who star in movies. A person can like several movies; a movie can be liked by many persons. A person can go to several theatres, and a theatre is visited by many persons. A theatre can play many different movies, and a movie can be played by several theatres. A player may star in several movies and a movie may involve many players, further a player may be a person, that is, some persons are players. Please note that in all the queries some means at least one Goes(person, theatre) Plays(theatre, movie) Likes(person, movie) Stars(movie, player) Code (a, b) in SQL a) Find persons who go only to theatres that play some movies liked only by Trump? b) Find movies where Clinton stared (as player) and which were played by at least 100 theatre visited by Biden

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!