Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
tpayne
Starting Member
18 Posts |
Posted - 2009-04-06 : 16:45:20
|
I have two Tables A and B. They are related by a field called tsr. I want to get all the records in table a that do not exist in table b. thanks in advance. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
bklr
Master Smack Fu Yak Hacker
1693 Posts |
Posted - 2009-04-07 : 01:08:06
|
try this one tooselect a.* from tablea a left join tableb b on b.tsr = a.tsrwhere b.tsr is null |
|
|
|
|
|