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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Unmatched records

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-08-27 : 11:28:55
Ryan writes "I have 2 same tables let's say table A and B. Some times table A get updated but B is not. If I want to select records exist in table A but not in table B . How can I do it?

Thanks"

nr
SQLTeam MVY

12543 Posts

Posted - 2002-08-27 : 12:39:37
select tbla.*
from tbla left outer join tblb on tbla.pk = tblb.pk
where tblb.pk is null

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -