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

what are archived logs?

1704


What do you mean by a tablespace?

556


Differentiate between function and procedure in oracle.

553


How to pass parameters to procedures?

542


How would you go about verifying the network name that the local_listener is currently using?

1599






What is oracle host variable?

526


Difference between the “verify” and “feedback” command?

757


What privilege is needed for a user to connect to oracle server?

547


What is key preserved table?

554


What is the usage of save points in oracle database?

527


What do database buffers contain?

557


How to create an oracle testing table?

584


You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

1449


Explain self joins in oracle?

548


WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?

1794