728x90
(Select PaperNum, DeptCD, EmployeeID
From DECIDE_APPR
Where EmployeeID = @pDeptCD
And ApplyCHK LIKE CASE @pStatusCHK
WHEN '0' THEN ''
ELSE RTRIM(@pStatusCHK) + '%'
END ) T2 

+ Recent posts