Create table #temp (name varchar(10) , email varchar(5000))
Insert into #temp values ('sam', '[email protected],[email protected],[email protected]')
Select * from #temp
Create table #temp2(id int, email2 varchar(5000))
Insert into #temp2 values (1, '[email protected]')
select * from #temp2
But when I try to select from below query then its not working.
Select * from #temp2 Where email2 in (Select email from #temp)
I want to pass email in the below format then it will work. '[email protected]','[email protected]','[email protected]' IS there any easier way to achieve this?