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

Explain coalesce function?

631


How to use "while" statements in oracle?

744


How to add another datafile to a tablespace?

579


What are the extensions used by oracle reports?

578


How to loop through data rows in the implicit cursor?

546






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?

1463


can anyody please send me the dump for Oracle 10g certifications for DBA path?

1699


Is truncate autocommit in oracle?

643


Explain drop constraint oracle?

596


What is the usage of merge statement?

678


How to create a new table by selecting rows from another table?

555


Why is oracle database so popular?

567


What are the four Oracle system processes that must always be up and running for the database to be useable?

595


How to create lov dynamically at runtime & attach to text field?

666


How do you increase the OS limitation for open files (LINUX and/or Solaris)?

1472