create table #t (i int)
insert #t select 1 union select 2 union select 3 ... union select 9select b.* from #t b left join A on b.i=a.b where a.b is nulldrop table #t