R
RSteph
I'm trying to move information from an old database, to a new database I'm
creating. I've got a query with group memberships (goupNo, ContactId,
datejoin) for the desired groups - Query1, I've got another query that pulls
information from the old data for the same 3 items for the same set of groups
- Query2. I believe that some of the records in the old database have already
been added to the new database, so I'm looking for a way to find all those
records that are in the old database that are NOT in the new database.
Is there an easy way to create a third query that will give me all the rows
(groupNo, contactID, dateJoin) when the GroupNo/ContactId in Query2 (old
data) does not exist in Query1 (new data)?
Sort of use one query to remove items from another... I know you can use a
WHERE [ColumnName] NOT IN (Query string), but is there a way to have that
check 2 columns at the same time? Would something like this work:
WHERE GroupNo,contactID NOT IN (Query2)
creating. I've got a query with group memberships (goupNo, ContactId,
datejoin) for the desired groups - Query1, I've got another query that pulls
information from the old data for the same 3 items for the same set of groups
- Query2. I believe that some of the records in the old database have already
been added to the new database, so I'm looking for a way to find all those
records that are in the old database that are NOT in the new database.
Is there an easy way to create a third query that will give me all the rows
(groupNo, contactID, dateJoin) when the GroupNo/ContactId in Query2 (old
data) does not exist in Query1 (new data)?
Sort of use one query to remove items from another... I know you can use a
WHERE [ColumnName] NOT IN (Query string), but is there a way to have that
check 2 columns at the same time? Would something like this work:
WHERE GroupNo,contactID NOT IN (Query2)