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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find a value that doesn't exsists in table2 but in table1

Status
Not open for further replies.

magmo

Programmer
May 26, 2004
291
0
0
SE
Hi


I have 2 database tables with a common column, I would like to find all records that exsists in table2 but not in table 1. I guess this is a easy task, but I'm lost right now.....

Regards
 
nice one, SQLDenis, but i think it's this instead --

select * from table2 t2 left outer join table1 t1 on
t2.id =t1.id
where t1.id is null

:)


r937.com | rudy.ca
 
Hi


Great, Thanks for the help!



Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top