我有一個員工表,其中包含字段 - 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. Oracle SQL查詢 - 需要幫助
- 4. 需要幫助優化oracle查詢
- 5. 需要Oracle複雜查詢幫助
- 6. 需要幫助mysql查詢
- 7. 需要幫助查詢
- 8. 需要TSQL查詢幫助
- 9. MySQL查詢:需要幫助
- 10. 需要Django查詢幫助
- 11. 需要MySQL查詢幫助
- 12. Sqlite查詢幫助需要?
- 13. 需要mysql查詢幫助
- 14. 需要LINQ查詢幫助
- 15. Laravel查詢需要幫助
- 16. 需要幫助mysql查詢
- 17. 需要查詢幫助
- 18. MySQL查詢幫助 - 需要
- 19. 需要幫助我查詢
- 20. 需要Mysql查詢幫助
- 21. 需要幫助:XPath查詢
- 22. 需要幫助mysql查詢
- 23. 需要PowerBI查詢幫助
- 24. LINQ查詢幫助需要
- 25. 需要SQLite查詢幫助
- 26. mysql查詢。需要幫助
- 27. 需要SQL查詢幫助
- 28. 需要MySql查詢幫助
- 29. MySQL查詢幫助需要
- 30. 需要SQL查詢幫助
我得到了第二高的薪水與下列查詢 - 選擇MAX(工資)從員工薪酬「提供的查詢,其中工資<(選擇最大(從職工薪酬)); – 2011-05-13 14:46:44