I am trying to insert the records that come of this query into a temp table. Any help or suggestion will be helpful
insert into #AddRec
select *
from stg di
right join
ED bp
on
bp.ID = di.ID
except
select *
from stg di
inner join
ED bp
on
bp.ID = di.ID