Page 1 of 1

Please provide a solution that does not use EXCEPT, please use NOT EXISTS in query.

Posted: Thu May 19, 2022 11:12 am
by answerhappygod
Please provide a solution that does not use EXCEPT,
please use NOT EXISTS in query.
Please Provide A Solution That Does Not Use Except Please Use Not Exists In Query 1
Please Provide A Solution That Does Not Use Except Please Use Not Exists In Query 1 (48.27 KiB) Viewed 62 times
Task Question 7 Return the id and name of all customers who have previewed at least all the movies previewed by customers who were born on the "2000-10-10". Customers born on “2000-10-10" should not be included in the final list. This query should return a table with two columns, the first being user ids and the second being users names. Hint: Correlated Subquery c7.txt or c7.sql Maximum Number of Queries 1 Explanation File Name SQL Solution
A relational database has been setup to track customer browsing activity for an online movie streaming service called SurfTheStream. Movies are identified by a unique code that consists of a four-character prefix and four-digit suffix. Additionally, each movie is assigned a content rating which must be one of the following options: "G", "PG", "M", "MA15+" or "R18+". The first time a customer previews a movie is captured by the database. Customers may preview a movie before they stream it, however, they cannot preview a movie after they have started to stream it. You may assume "Duration" refers to the time in seconds a customer has spent streaming a particular movie after the "Timestamp". A simplified version of their database schema has been provided below including foreign key constraints. You should consult the provided blank database import file for further constraints which may be acting within the system. Relational Schema Customer ſid, name, dob, bestfriend, subscriptionLevel] Customer bestfriend references Customer.id Customer.subscriptionLevel references Subscription.level Movie (prefix, suffix, name, description, rating, release Date] Previews [customer, moviePrefix, movieSuffix, timestamp] Previews.customer references Customer.id Previews.{moviePrefix, movieSuffix} reference Movie {prefix, suffix} Streams (customer, moviePrefix, movieSuffix, timestamp, duration] Streams.customer reference Customer.id Streams.{moviePrefix, movieSuffix} reference Movie {prefix, suffix} Subscription [level]