• You could try,

    select *

    into D

    from A

    where not exists (select 'x' from C where C.key=A.key)

    union

    select *

    into D

    from B

    where not exists (select 'x' from C where C.key=B.key)