Home » RDBMS Server » Server Administration » Help - Select statement to get top 5 rank
Help - Select statement to get top 5 rank [message #371630] Thu, 16 November 2000 21:04 Go to next message
Rudi Triatmono
Messages: 1
Registered: November 2000
Junior Member
Can somebody help me...

How can we get top 5 rank from one table with select statement...??

I really appreciate your help

Regards

Rudi Triatmono
Re: Help - Select statement to get top 5 rank [message #371633 is a reply to message #371630] Fri, 17 November 2000 02:25 Go to previous messageGo to next message
devendra vaidya
Messages: 2
Registered: November 2000
Junior Member
select a.salary,a.emp from emp a
where 3 > (select count(*) from emp where a.salary < salary)
Re: Help - Select statement to get top 5 rank [message #374460 is a reply to message #371633] Wed, 13 June 2001 10:12 Go to previous messageGo to next message
Manish Sohaney
Messages: 2
Registered: June 2001
Junior Member
SELECT * FROM EMP WHERE ROWNUM < 6 ORDER BY SALARY;
Re: Help - Select statement to get top 5 rank [message #374461 is a reply to message #371633] Wed, 13 June 2001 10:19 Go to previous message
Manish Sohaney
Messages: 2
Registered: June 2001
Junior Member
SELECT * FROM EMP WHERE ROWNUM < 6 ORDER BY SALARY;
Previous Topic: Oracle 8.1.7.0 under Sun Solaris 2.6
Next Topic: How to store a Lotus Notes-file?
Goto Forum:
  


Current Time: Mon Dec 23 13:53:19 CST 2024