Task 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 Explanation File Name Maximum Number of Queries 1 SQL Solution
Please solve Question 7 using the SQL command 'NOT EXISTS'.
Other relative info includes the data tables below:
TABLE `Streams` (
`customer` int NOT NULL,
`moviePrefix` char(4) NOT NULL,
`movieSuffix` char(4) NOT NULL,
`timestamp` timestamp NOT NULL,
`duration` int NOT NULL
TABLE `Previews` (
`customer` int NOT NULL,
`moviePrefix` char(4) NOT NULL,
`movieSuffix` char(4) NOT NULL,
`timestamp` timestamp NOT NULL
TABLE `Movie` (
`prefix` char(4) NOT NULL,
`suffix` char(4) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text NOT NULL,
`rating` enum('G','PG','M','MA15+','R18+') NOT NULL,
`releaseDate` date DEFAULT NULL
TABLE `Customer` (
`id` int NOT NULL,
`name` varchar(255) NOT NULL,
`dob` date NOT NULL,
`bestFriend` int DEFAULT NULL,
`subscriptionLevel` varchar(25) NOT NULL
Step by step
Solved in 2 steps