TOP N with variables
I want to be able to select the top n results from a results table in a stored procedure but depending on the event I want to vary how many 'n' is. I thought that this would do the trick: CREATE PROCEDURE sp_best ( @NumBest [int], @Entry [int]) AS select top @NumBest Results.RunNo, Results.Points FROM […]
2001-11-15