I have read two excel sheets in two temp tables, #temp and #temp1 Replacing the tables in IN Clause returns different resutls. I was expecting the same. Can anyone explain?
select * from #temp where name in (select comp_name from #temp1)
Returns 473 records.
select * from #temp1 where comp_name in (select name from #temp)
Returns 1421 records