This may help it simplifies your query a little.
create table #AddRec(id int) ;
insert into #addrec
select ed.id
from stg right join
ed on stg.id=ed.id
where stg.id is null;
select * from #Addrec
If you need more fields from the tables add the definitions into the temp table and add them into the select line