• Dave62 (8/5/2011)


    For those who were expecting the third highest salary, here is a select for that [...]

    Or, slightly more compactly:

    select max(Salary) from @table where Salary <

    ((select max(Salary) from @table where Salary < (select max(Salary) from @table)))