Create PROCEDURE GetEmployeessalaryInOutputVariable
(
@Income INT, -- Input parameter, Income of the Employee
@FirstName VARCHAR (30) OUT, -- Output parameter to collect the Employee name
@Title VARCHAR (30)OUT -- Output Parameter to collect the Employee designation
)
AS
BEGIN
SELECT @FirstName = FirstName, @Title=Title
FROM Salaries WHERE @Income=Income
END
Your SP should be like this