try like thisdeclare @table1 table ( id1 int, val1 varchar(8))insert into @table1 select 1, 'a' union allselect 2, 'b' union allselect 3, 'c' union allselect 4, 'd' union allselect 5, 'e' declare @table2 table ( id2 int, val2 varchar(8))insert into @table2select 1, 'a' union allselect 2, 'b' union allselect 3, 'c' solution1 : select t1.val1from @table1 t1 left join @table2 t2 on t2.val2 = t1.val1where t2.val2 is null solution2 : select t1.val1from @table1 t1 where not exists ( select val2 from @table2 where val2 = t1.val1 )