How to Select second Maximum salary in a Table ?

Answer Posted / arpit sachan

select min(Emp_Sal)from Employee_Test where Emp_sal in(select distinct top(2) Emp_Sal from Employee_Test order by Emp_Sal desc)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to make an oracle object

1862


What is the difference between a primary key & a unique key?

593


What is instant client oracle?

548


How to compare dates in oracle sql?

661


How do you store pictures in a database?

565






How do we create privileges in oracle?

589


What do you understand by a database object? Can you list a few of them?

612


What privilege is needed for a user to create indexes in oracle?

580


List out the difference between commit, rollback, and savepoint?

624


How to update values on multiple rows in oracle?

604


What is the max number of columns in an oracle table?

520


How to retrieve the count of updated rows?

578


What is bulk collect in oracle?

560


What are the varoius components of physical database structure of oracle database?

573


What is meant by recursive hints in oracle?

622