Oracle Solution
\nselect salary into result from (\n        select salary,rownum r1 from\n            (select distinct salary from Employee order by salary desc)\n        )\n  
```\nselect salary into result from (\n        select salary,rownum r1 from\n            (select distinct salary from Employee order by salary desc)\n        )\n    where r1 = n;\n```\nUse "rownum" in subqueries.\n1st query: order of salary in desc,\n2nd query: get rownum as r1 of ordered table in 1st query;\n3rd query: make r1 fixed.\nNote: use "distinct" to output null value.\n
[]