- first we will build the following predefined
condition using this syntax:
SELECT Customer.cust_id
FROM Customer
WHERE NOT EXISTS
(select Sales.cust_id from Sale where Customer.cust_id=Sales.cust_id)
- We will create a simple query that returns the
customers ID’s :
- The result will be getting just those
customers who don’t have any invoice :