i have an values in temp table like this
ID
1
2
3
but know from employee table i need to select values based from temp table
declare @mStrvalue as varchar(100)
select @mStrvalue =IDS from Temp_ID
select * from employee where employee.emp_ID= @mStrvalue
Right now this staement is giving me only 1 row value actually there is data present for all the ids
is there anything wrong in th e syntax that i am going, pls let me know.
thnkas prince