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)
(#372435@0)
2002-2-18 -05:00

回到话题: have a employee table like this, find the 5th highest salary in it

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=372435