Objective: Practice creating a stored procedure with an output parameter.
Create (or alter) a stored procedure named dbo.usp_GetLastName that:
dbo.usp_GetLastName
@EmployeeID
int
@EmployeeStatus
SELECT
1
0
Hint: An output parameter must be declared with the OUTPUT keyword in the procedure definition, and you must assign a value to it inside the procedure (for example, with SET).
OUTPUT
SET