• declare @n int,

    @s-2 varchar(1000)

    set @n=10

    set @s-2 ='select min(your_field) from your_table where your_field in

    (select top ' + convert(varchar(10,@n) + ' your_field from your_table order by your_field desc)'

    execute (@s)

    Another solution with runtime sql.

    Adrian