select t.* from
(
select backupdatabasename.dbo.table1.f1,backupdatabasename.dbo.table1.f2,backupdatabasename.dbo.table1.f3,..., basedatabasename.dbo.table1.f1 as newf1,basedatabasename.dbo.table1.f2 as newf2
from backupdatabasename.dbo.table1
left outer join basedatabasename.dbo.table1
on backupdatabasename.dbo.table1.f1=basedatabasename.dbo.table1.f1
and backupdatabasename.dbo.table1.f2=basedatabasename.dbo.table1.f2
) as t
where t.newf1 is null and t.newf2 is null
|