Question: Given the following SQL query: SELECT SUPNAME, SUPADDRESS, SUPCITY FROM SUPPLIER R WHERE NOT EXISTS ( SELECT * FROM PRODUCT P WHERE EXISTS ( SELECT

Given the following SQL query:
SELECT SUPNAME, SUPADDRESS, SUPCITY
FROM SUPPLIER R
WHERE NOT EXISTS
(SELECT *
FROM PRODUCT P
WHERE EXISTS
(SELECT *
FROM SUPPLIES S
WHERE R.SUPNR = S.SUPNR
AND P.PRODNR = S.PRODNR));
This query selects:
The supplier name, supplier address and supplier city of all suppliers who cannot supply all products.
The supplier name, supplier address and supplier city of all suppliers who cannot supply any products.
The supplier name, supplier address and supplier city of all suppliers who can supply all products.
The supplier name, supplier address and supplier city of all suppliers who can at least supply 1 product.
 Given the following SQL query: SELECT SUPNAME, SUPADDRESS, SUPCITY FROM SUPPLIER

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!