I have a table of employees and I want to get the top three employees of the month.
I have a stored procedure that takes the employee ID and and returns a number indicating that employee quality of work.
I was hoping to find something like:
SELECT top (3) name
FROM employee
order by sp_emplyeePerformance employee.ID -- of course this doesn't work
is such thing possible ? or should I create a temporary table with the employee name and performance and then query the temp table