how to find the second highest salary from emp table?

Answer Posted / sachin verma

select sal from emp
where rownum=2
order sal by Desc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is embedded sql with example?

552


What are keys in sql?

553


What is Histogram?

1105


Which tcp/ip port does sql server run?

540


What is the difference between a primary key and a clustered index?

526






What is error ora-01000: maximum open cursors exceeded

606


How to add, remove, modify users using sql?

563


What is program debugging?

573


Explain table and field in sql?

587


what is meant by urlencode and urldocode? : Sql dba

604


Can we use the cursor's to create the collection in PL/SQL?

524


Why are indexes and views important to an organization?

530


How many types of functions are there in sql?

509


What is the use of non clustered index?

531


What are the sql aggregate functions?

612