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 rebuild an index in oracle?
Explain a data segment?
Explain oracle’s system global area (sga).
What happens if you lost a data file?
What are the various oracle database objects?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
Can we connect to ORACLE db using Windows Authentication?
How to use null as conditions in oracle?
What is oracle latest version?
What is the max number of columns in an oracle table?
Give the various exception types.
How to speed up webrick?
What is open database communication (odbc) in oracle?
How a tablespace is related to data files?
What is sharded cluster?