Ok - Please someone point out what is my silly mistake...
I have a table called Trends and a table called Customers... The Trends table has a field called CustomerID, which is a fkey to the Customer table...
...so why when I ask to see all customers that are NOT in the trends table do I get nothing? Not an error, but no records returned...
It is quite clear that there are about a thousand or so Customers not linked to this table...
What am I doing wrong? Arg.
Does access not support NOT IN lists/subqueries?
Attached is an image that shows that there is Fkey's values in the Trends table, and clearly some customers w/o this linked value...
What gives? Do I need more coffee?
Thanks,
-Matt G.
Code:
SELECT *
FROM Customers
WHERE Customers.CustomerID not in (
select Trends.CustomerID
from Trends
);
...so why when I ask to see all customers that are NOT in the trends table do I get nothing? Not an error, but no records returned...
It is quite clear that there are about a thousand or so Customers not linked to this table...
What am I doing wrong? Arg.
Does access not support NOT IN lists/subqueries?
Attached is an image that shows that there is Fkey's values in the Trends table, and clearly some customers w/o this linked value...
What gives? Do I need more coffee?
Thanks,
-Matt G.