Home » RDBMS Server » Server Administration » query
query [message #374408] Mon, 11 June 2001 01:35 Go to next message
amar jyoti dutta
Messages: 2
Registered: June 2001
Junior Member
how to wtite a query which will return the 3rd highest salary from emp table without using the 3 subqueries
Re: query [message #374420 is a reply to message #374408] Mon, 11 June 2001 08:08 Go to previous message
Bala
Messages: 205
Registered: November 1999
Senior Member
Hi,

select empno, sal
from emp a
where 3 = (select count(*)
from Emp b
where b.sal > a.sal);
Previous Topic: defining triggers in oracle 8i
Next Topic: Which is the Perfect Update Statement
Goto Forum:
  


Current Time: Fri Jul 05 17:39:43 CDT 2024