Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following set of relations describes a sales system, in which the primary keys have been underlined, and foreign keys are marked with ana asterix;
The following set of relations describes a sales system, in which the primary keys have been underlined, and foreign keys are marked with ana asterix;
actor actorID firstName, lastName, gender
movie moxieID title, year, time, language, releaseDate
moxieCast actorID movieID role
reviewer reviewerID name
rating movieID reviewerID, stars, ratingNumber
Write SQL queries to answer the following:
a Write a SQL query to find those movies, which were released before Return movie title.
b Write a SQL query to find the name of all reviewers and movies together in a single list.
c Write a SQL query to find the movie titles that contain the word 'Boogie Nights'. Sort the resultset in ascending order by movie year. Return movie movie title and movie release year.
d Write a SQL query to find the movies with ID or or
e Write a SQL query to find the movies without any rating.
f Write a SQL query to find all reviewers who have rated seven or more stars to their rating.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started