That won't work. MINUS in ORACLE isn't equivlent to subtraction. This is similar to a UNION in reverse. It returns the Supplier_IDs from Suppliers table that are NOT IN the Orders table.
So, this might work....
Code:
SELECT Supplier_ID
FROM Supplier
WHERE Supplier_ID NOT IN (SELECT Supplier_ID
FROM Orders)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.