How to split front end passing variable value in sql
hi below query iam passing @test =test1,test2,test3 when i pass test1 only that if condition working fine when i pass more than one value that condition not working fine can any one help me how to split and how to check if conditionif @Test not in (SELECT company_code FROM RC_Employee_Company_Mapping WHERE employee_number=@Empid)
insert into RC_Company_Mapping_Audit_Details(Emp_ID,Company_Code_Access,Createdby_Userid,Audit_Timestamp,Audit_Action)values(@Empid,@string,@Login_ID,GETDATE(),'P')