I'm having some trouble with Access. I have a PHONES table with two very specific columns: Provider_prefix and client_prefix. I need to be able to generate a query that will give me every provider_prefix that is not on client_prefix (that is, there are no clients in the prefix area of that provider), and one that will do just the opposite: give me the prefixes that match. So far I've tried the following:
SELECT *
FROM PHONES INNER JOIN PHONES_2
ON PHONES.provider_prefix != PHONES_2.client_prefix;
Which will just fail. I've also tried the following:
SELECT *
FROM PHONES
WHERE provider_prefix NOT IN (SELECT DISTINCT client_prefix
FROM PHONES)
Which, while technically working, throws zero, and my guess is that is happens because there are nulls in the columns (which are both Number-type). Any ideas would be very appreciated.