Can someone help me please, I am trying to use an IN clause in a parameter in SQL server 2018. I would then use the parameter in the Where clause within the select statement This is the query below:
CREATE STORE PROC EMPLOYEE_INFO
AS
BEGIN
DECLARE @City varchar(100)
@Contract_type varchar(100)
SET @City = 'London, Glasgow, Manchester'
,@Contract_type = 'Permanent, Temporary, Fixed Term'
Select EmpID, Emp_Start_Date, Address, City, Contract_type
from Employee
Where City NOT IN ('@City')
AND Contract_Type IN ('Permanent', 'Temporary', 'Fixed Term')
END
