F
Frank M.
For simplicity let's assume that I have a table Cust with
fields CustID and CustName, another table CustSpecial
with field CustID. The two table are related through
CustID key.
Now, I can get the following query to work:
SELECT * FROM Cust
WHERE EXIST (SELECT * FROM CustSpecial WHERE
CustSpecial.CustID = Cust.CustID)
It gives me the Customers that are also present in the
CustSpecial table. However, if I insert a "NOT" between
WHERE and EXIST, it gives me nothing. I would expect
those customers that are not present in CustSpecial.
What am I doing wrong here?
Regards,
Frank M.
fields CustID and CustName, another table CustSpecial
with field CustID. The two table are related through
CustID key.
Now, I can get the following query to work:
SELECT * FROM Cust
WHERE EXIST (SELECT * FROM CustSpecial WHERE
CustSpecial.CustID = Cust.CustID)
It gives me the Customers that are also present in the
CustSpecial table. However, if I insert a "NOT" between
WHERE and EXIST, it gives me nothing. I would expect
those customers that are not present in CustSpecial.
What am I doing wrong here?
Regards,
Frank M.