ALTER procedure [dbo].[testProc] @val varchar(50) as begin if(@val='Dependant') begin select ADM_Dependent.* from ADM_Dependent join MST_Employee on ADM_Dependent.EmployeeId=MST_Employee.EmployeeId end else if (@val ='Employee') BEGIN select * from MST_Employee END end
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)