D
DZ
Hello
I want to return records containing the Name, Address and Location fields
only, from Table1 where the combined fields Name, Address and Location are
are not in Table2...and I want each record that is returned to be unique. I
also want to NOT return any records where Name or Address are null.
The unmatched below query is returning the correct records. Is there a way
to Append these records to Table2 and do it all in a single SQL statement?
Thanks for any help with this.
Below is the unmatched query.
SELECT DISTINCT Table1.[Name]
, Table1.[Address]
, Table1.Location
FROM Table1 LEFT JOIN Table2
ON (Table1.[Address] = Table2.[Address]) AND
(Table1.[Name] = Table2.[Name]) AND
(Table1.Location = Table2.Location)
WHERE Table2.Location Is Null
Order By Table1.[Name]
, Table1.[Address]
, Table1.Location
I want to return records containing the Name, Address and Location fields
only, from Table1 where the combined fields Name, Address and Location are
are not in Table2...and I want each record that is returned to be unique. I
also want to NOT return any records where Name or Address are null.
The unmatched below query is returning the correct records. Is there a way
to Append these records to Table2 and do it all in a single SQL statement?
Thanks for any help with this.
Below is the unmatched query.
SELECT DISTINCT Table1.[Name]
, Table1.[Address]
, Table1.Location
FROM Table1 LEFT JOIN Table2
ON (Table1.[Address] = Table2.[Address]) AND
(Table1.[Name] = Table2.[Name]) AND
(Table1.Location = Table2.Location)
WHERE Table2.Location Is Null
Order By Table1.[Name]
, Table1.[Address]
, Table1.Location