Write query to fetch second maximum salary from employee table.
Answer Posted / abhishekjaiswal
select a.last_name,a.salary from employees a where 3=(select count(*) from employees b where b.salary>a.salary) order by a.salary desc.
<<<<<<<<<[N-1]>>>>>>>>>>
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the simplest tool to run commands on oracle servers?
How to get execution path reports on query statements?
What is a proxy object?
What is an oracle database table?
What is the usage of synonyms?
Why is oracle used?
What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.
How to define and use table alias names in oracle?
How to select some columns from a table in oracle?
Explain the use of rows option in exp command.
Which is better Oracle or MS SQL? Why?
How to define a record variable to store a table row?
What is a static data dictionary in oracle?
What is meant by a deadlock situation?
How to select some rows from a table in oracle?