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 difference between truncate & delete command?
What is a user role in oracle?
how to join query for one source type is oracle another source type is sql server ?
How to start instance with a minimal initialization parameter file?
What are internal user account in oracle?
Explain the importance of .pll extension in oracle?
How do we display rows from the table without duplicates?
How oracle handles dead locks?
What is system tablespace?
you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz
What is blob data type in oracle?
How to install oracle database 10g xe?
How to view the data files in the current database?
How to test null values?
What are the execution control statements?