我有一個員工表,其中包含字段 - EmpId,EmpName,Salary。 表包含8條記錄。現在我想獲得第三高的薪水。 可以請你爲需要幫助Oracle查詢
0
A
回答
1
select *
from (select *
from employee
order by salary desc)
where rownum = 3;
+0
謝謝奧拉夫,我想第三最高工資不是第三個記錄 – 2011-05-13 14:45:34
+0
謝謝奧拉夫,您的查詢正在工作。我對您的查詢感到困惑 – 2011-05-13 14:51:40
0
select * from (select DISTINCT salary from employee order by salary desc) where rownum = 3;
相關問題
- 1. 需要幫助優化oracle查詢
- 2. 在Oracle SQL查詢中需要幫助
- 3. SQL查詢需要幫助
- 4. 需要幫助我查詢
- 5. 需要mysql查詢幫助
- 6. 查詢需要幫助
- 7. 需要MySQL查詢幫助
- 8. 需要查詢幫助嗎?
- 9. 需要SQLite查詢幫助
- 10. 需要LINQ查詢幫助
- 11. 需要Mysql查詢幫助
- 12. 需要幫助mysql查詢
- 13. 需要MySQL查詢幫助
- 14. 需要Django查詢幫助
- 15. 需要幫助MySql查詢
- 16. MySQL查詢:需要幫助
- 17. LINQ查詢幫助需要
- 18. 需要PowerBI查詢幫助
- 19. mysql查詢。需要幫助
- 20. Laravel查詢需要幫助
- 21. 需要MySql查詢幫助
- 22. MySQL查詢幫助需要
- 23. SQL查詢/子查詢需要幫助
- 24. Oracle查詢幫助
- 25. Oracle查詢幫助
- 26. 需要幫助從Oracle表
- 27. 需要幫助:與時區相關的Oracle SQL查詢
- 28. 需要某些Oracle SQL查詢的幫助
- 29. 需要幫助爲oracle做動態查詢
- 30. 在oracle查詢格式上需要幫助
我得到了第二高的薪水與下列查詢 - 選擇MAX(工資)從員工薪酬「提供的查詢,其中工資<(選擇最大(從職工薪酬)); – 2011-05-13 14:46:44