http://blog.oracle.com.cn/html/79/t-85279.html
思路應該用rank() over (partition by dept_id order by salary) 分組排序
再用rownum選擇前5
這個問題好像別人問過
所有跟帖:
•
看看這個方案
-小丹尼-
♂
(1477 bytes)
()
07/20/2009 postreply
11:46:26
•
You are awesome! I used RANK and make it work. THANK YOU!
-小蝦米-
♀
(0 bytes)
()
07/20/2009 postreply
12:07:29