find out first highest salary?
Answer Posted / tulasi
select * from emp x where 1=(select count(distinct sal)
from emp y where x.sal<=y.sal);
query to find nth sal
select * from emp x where &n=(select count(distinct sal)
from emp y where x.sal<=y.sal);
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
I have a parent program and a child program. I want to write a statement in Exception Block of the parent program so that when the statement in the exception block is executed, the control goes to the next statement in the parent block bypassing the child block.How do i do that?
What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?
what is the scenario where you take the database to NoArchivelog mode?
HI, Please let me know the syllabus for Oracle OCA and OCP Certification
Why does Oracle not permit the use of PCTUSED with indexes?
State any two functions of oracle?
What is coalesce function?
What is the difference between sharding and partitioning?
Is primary key indexed by default in oracle?
In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?
How to use "while" statements in oracle?
What is flashback in Oracle?
What are the differences between date and timestamp in oracle?
List out the components of logical database structure of oracle database.
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...