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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 60 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]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply