Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Best was to Dedupe 1

Status
Not open for further replies.

wilberforce2

IS-IT--Management
Jan 8, 2007
36
GB
Please help I am having problems with two access tables that I have to dedupe one against the other. Both tables have company names and addresses stored in them.

What I have is a master table (A) and a table with additional information (B).

What I am trying to achieve is a query that checks three fields in both tables fldCompanyName, fldPostCode and fldTelephone and any records not in table A I want added from table B.

Thanks for any suggestions.
 
How about

Code:
select b.* from tableB b
left join tableA a
on b.fldCompanyName = a.fldCompanyName
and b.fldPostCode = a.fldPostCode
and b.fldTelephone = a.fldTelephone
where b.fldCompanyName is null

Hope it helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top