Viewing post 1 (of 1 total)
-- I hope this demonstrates a relatively simple method
declare @id1 int
create table #result (id1 int)
set @sql = 'SELECT MAX(ID1) FROM (SELECT TOP '+ CAST(@grade1 as varchar)+ ' * FROM...
August 31, 2005 at 8:29 pm
#586707