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
How to generate query output in html format?
What is oracle open database communication (odbc)?
How would you change old and new values in an insert, delete and update triggers?
how do u setup a replication site?
Hi Can any one tell me what are the API's used in requisition import.
What happens in oracle commit?
What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?
How does Oracle guarantee data integrity of data changes?
How to use "for" statements in oracle?
What is ASM (Automatic Storage Management) in Oracle?
How to use "if" statements on multiple conditions?
Explain a data segment?
what is meant by magic query
Explain compound trigger in oracle?
What are a cluster and non-cluster index?