Given an employee table, how would you find out the second
highest salary?

Answer Posted / ravikumar

select ename,esal from
(select ename,esal from hsal
order by esal desc)
where rownum <=2

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?

530


How long can an error message be in raiseerror function?

554


How to use timestamp datatypes

1583


Why does this query return 0?

626


How can I detect whether a given connection is blocked?

588






explain detail about ftp in datastage?

1819


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2016


How to read and create .LDC data files which are used by linguatic dictionary.

2065


fact table and dimension table containg one to many relationship or many to one relastionship

2082


How to generate OIDS

1666


In which database can extended stored procedures be added?

536


Explain about a primary key?

574


Write the fastest query to find out how many rows exist in a table?

668


How to replace not in with not exist?

1470


Any sample or model question of punjab national bank for deputy manger IT or any sample of PNB.any1 plz do send on

1825