Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / lakshminarayana reddy

select rownum,empno,ename,job,sal from emp(select
rownum,empno,ename,job,sal from emp order by sal desc) grop
by rownum,empno,ename,job,sal having rownum=2;

Is This Answer Correct ?    7 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are triggers in sql?

576


What is the maximum number of columns in sql table?

542


How do you create a unique index?

565


What is mdf ldf and ndf?

556


What is difference between sql and oracle?

554






Why do we use joins?

558


What is a boolean in sql?

518


What are the query optimization techniques?

532


what is msql? : Sql dba

558


What are the two parts of design view?

575


What is the difference between the conventional and direct path loader? : aql loader

644


How do I get sql certification?

520


What is a design view?

516


Explain the uses of control file.

608


in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.

1636