I have tried this but it doesn't seem to be working.
ALTER PROCEDURE GetApprover
@Cost money,
@EmployeeNumber varchar(5) = NULL
AS
DECLARE @ManagerCost money
DECLARE @MaxCost money
SET @ManagerCost = (SELECT Cost FROM Approver WHERE EmployeeNum = @EmployeeNumber)
SET @MaxCost = (SELECT TOP 1 Cost FROM Approver WHERE Cost > @ManagerCost ORDER BY Cost DESC)
RETURN @MaxCost
ALTER PROCEDURE GetApprover
@Cost money,
@EmployeeNumber varchar(5) = NULL
AS
DECLARE @ManagerCost money
DECLARE @MaxCost money
SET @ManagerCost = (SELECT Cost FROM Approver WHERE EmployeeNum = @EmployeeNumber)
SET @MaxCost = (SELECT TOP 1 Cost FROM Approver WHERE Cost > @ManagerCost ORDER BY Cost DESC)
RETURN @MaxCost