nth highest salary in sql using correlated subquery

join shbcf.ru