Oracle: select distinct name from tablename where salary = (select sum(salary)/count(*) as x from tablename where rownum = 5 group by x order by x);

guoyifan (ooo)
2002-2-18 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: have a employee table like this, find the 5th highest salary in it

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论