Query to get max and second max in oracle in one query ?
Answer Posted / naveen
select sal from employee where sal >= (select max(sal) from
employee where sal not in (select max(sal) from employee))
| Is This Answer Correct ? | 7 Yes | 14 No |
Post New Answer View All Answers
what is port in oracle? how is it related to database application.
What is a table index?
How to select an oracle system id (sid)?
What is a private synonym?
What is Trigger in Oracle?
What are the most common interview questions on ETL Testing for experience?
What is oracle rownum?
What is clustered table in Oracle?
How to use fetch statement in a loop?
What is Library Cache in Oracle?
How to lock and unlock a user account in oracle?
How data locks are respected in oracle?
Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.
what is the use of triggers in Java program? I mean where do we use triggers in Java programming?
Are truncate and delete commands same? If so why?