Guest_imported
New member
- Jan 1, 1970
- 0
In constructing a query to look for a few different records in two relatively large tables (test1 and Aeron-mem), I have run into a problem. The field I'm examining is "phonekey." Table "test1" has a few more records than "Aeron-mem", and I'd like to query it for these records. When using
In (SELECT phonekey FROM [Aeron-mem]
as the criterion for the query on the "phonekey" record of table "test1", the expected behavior occurs: all records are returned *except* the new records. However, when I add a "not" to the front of the criterion as so:
Not In (SELECT phonekey FROM [Aeron-mem]
I would expect the query to return all records from table "test1" with a "phonekey" NOT present in table [Aeron-mem]. This is not the case...I get a query with no records.
Can anyone help me?
Thanks! -Brian
In (SELECT phonekey FROM [Aeron-mem]
as the criterion for the query on the "phonekey" record of table "test1", the expected behavior occurs: all records are returned *except* the new records. However, when I add a "not" to the front of the criterion as so:
Not In (SELECT phonekey FROM [Aeron-mem]
I would expect the query to return all records from table "test1" with a "phonekey" NOT present in table [Aeron-mem]. This is not the case...I get a query with no records.
Can anyone help me?
Thanks! -Brian