select isnull(salary,null) as SecondHighestSalary from(select distinct salary,row_number()over(order by salary desc) rn from Employee ) temp where rn=2;

NoSuchKey