Question: May I ask the SQL Query code as the follow Movie(title, production year, country, run time, major genre) primary key : {title, production year} Person(id,
May I ask the SQL Query code as the follow
Movie(title, production year, country, run time, major genre)
primary key : {title, production year}
Person(id, first name, last name, year born)
primary key : {id}
Director(id, title, production year)
primary key : {title, production year}
foreign keys : [title, production year] Movie[title, production year] [id] Person[id]
Writer(id, title, production year, credits)
primary key : {id, title, production year}
foreign keys : [title, production year] Movie[title, production year] [id] Person[id]
Question.
A person has worked on a movie if this person is a director, a writer, or both a director and writer of this movie. Who have worked on at least two distinct movies in this database? List their ids, first and last names.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
