I have one table with phone numbers [Phone Assignment List], and another table with phone usage transactions [Call Detail Data] I want to have a report which lists the unqiue phone numbers which appear on the transaction report but not in the phone number table.
I wrote the below query which works correctly, but is very slow. Is there a faster and simpler way to do this?
Thanks!
SELECT DISTINCT [Call Detail Data].PHONENUMBER,
[Call Detail Data].AMOUNT,
[Call Detail Data].CALLDATETIME
FROM [Call Detail Data]
WHERE ((([Call Detail Data].PHONENUMBER) Not In
(select [Phone Assignment List].PHONENUMBER
from [Phone Assignment List])));
I wrote the below query which works correctly, but is very slow. Is there a faster and simpler way to do this?
Thanks!
SELECT DISTINCT [Call Detail Data].PHONENUMBER,
[Call Detail Data].AMOUNT,
[Call Detail Data].CALLDATETIME
FROM [Call Detail Data]
WHERE ((([Call Detail Data].PHONENUMBER) Not In
(select [Phone Assignment List].PHONENUMBER
from [Phone Assignment List])));