I have a comma separated input parameter @EmployeeId that contains the following values: '123','234','246'.
How can I break them up into a temp table(#Employees) so that I can then write a query against them. Something like this:
Thanks,
Ninel
How can I break them up into a temp table(#Employees) so that I can then write a query against them. Something like this:
Code:
SELECT *
FROM SALES s
INNER JOIN #EMPLOYEES e
ON s.empId = e.empid
Thanks,
Ninel