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

Answer Posted / varun

select sal from emp where rownum=2 order by sal desc;

Is This Answer Correct ?    6 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anonymous block in sql?

640


How many types of cursors supported in pl/sql?

596


How to write a query to show the details of a student from students table whose

542


What is difference between inner join and self join?

595


What is dba in sql? : SQL DBA

539






What is trigger point?

540


What is lookup table in sql?

609


Why do we use joins in sql?

504


How do you remove duplicate records from a table?

513


How to call shell script from pl sql procedure?

629


Write the command to remove all players named sachin from the players table.

748


What are the types of join in sql?

520


How does cross join work?

504


What is bind variable in pl sql?

532


difference between anonymous blocks and sub-programs.

626