Write query to fetch second maximum salary from employee table.

Answer Posted / ritesh

select max(salary) from emptable where salary < (select max(salary) from emptable);

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to upsert (update or insert into a table)?

532


What is tns name?

538


Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1499


How to install oracle odbc drivers?

616


material view and view disadvantages?

633






What is a oracle database?

600


What happens to the indexes if a table is recovered?

569


How do I recompile a procedure in oracle?

525


Will you be able to store pictures in the database?

631


Explain oracle’s system global area (sga).

615


What is a relational database management system?

664


What is the difference between I and G in Oracle?

598


What are the system predefined user roles?

579


How to display employee records who gets more salary than the average salary in the department?

590


Explain implicit cursor.

551