Another way is this:-- Prepare sample datadeclare @t1 table( [week] int, value int)declare @t2 table( [week] int, value int)insert @t1select 1, 200 union allselect 2, 100 union allselect 3, 500 union allselect 3, 250 union allselect 4, 400insert @t2select 1, 50 union allselect 1, 100 union allselect 2, 300 union allselect 5, 250 union allselect 6, 700-- Final Queryselect [week], [value] from @t1union allSelect t3.[week], t3.[value]from @t2 t3 where t3.[week] not in(select t2.[week]from @t2 t2 join @t1 t1 on t2.[week] = t1.[Week])order by 1
Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED"