Pass the column dynamically and combine to single query
declare @a= Item,Price,Quantity,Product,Descriptionselect @a
select * from Table1 where Item not in (select Item from Table2)
select * from Table1 where Price not in (select Price from Table2)
select * from Table1 where Quantity not in (select Quantity from Table2)
select * from Table1 where Product not in (select Product from Table2)
select * from Table1 where Description not in (select Description from Table2)
Expected Query (Column name has to pass dynamically as)
select * from Table1 where @a not in (select @a from Table2)
=> I have listed with 5 select query. Please tell the possible way to write in single query.