Query to get max and second max in oracle in one query ?
Answer Posted / satish
SELECT SAL FROM (SELECT SAL,DENSE_RANK() OVER(ORDER BY SAL DESC) RANK FROM EMP) WHERE RANK=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are actual and formal parameters?
Explain an index segment?
What is oracle data type?
What is oracle datasource?
What are the database administrators utilities available?
How do I call oracle stored procedures that take no parameters?
How can Oracle users be audited?
What is logical backup in oracle?
How to recover a dropped table in oracle?
What is a oracle database?
How we can able to import our own template (users designed MS-Word templates) which has many tabular columns; need to pass some values generate by Oracle-reports9i? Actually need to import more than 400 MS-Word templates into Oracle Reports-9i to minimize layout design in Reports.
How to define an anonymous procedure without variables?
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 are the different types of synonyms?
What is a tns service name?