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

finding unique entries between two tables

Status
Not open for further replies.

jontracey

IS-IT--Management
Oct 2, 2002
1
EU
Hi

Probably a simple question but my brain has just broke :)

I have two tables, both have almost identical data but I need to find out which lines are different

so table 1 has 10000 lines, table 2 has 10200 lines, I need to find a way to show only those that are not in table 1

Hope this make sense.

Thanks

Jon
 
say you have table1 and table2
table1=10000 rows
table2=10200 rows

both are keyed on rowid


select rowid from table2 where
rowid not in (select rowid from table1)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top