write a query for the fifth highest salary?

Answer Posted / venkates

select distinct(a.sal) from emp a where 5=(select
count(distinct(b.sal)) from emp b where a.sal<=b.sal)

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

During insert operation in Netezza Connector, if we give direct option as Yes , is there any issue?

948


What is a database call?

558


Explain storage manager?

596


how to configure oracle 10g in java1.5 and tell me know how to set class path in system?

1589


How to implement database security?

537






what is rcp,if rcp disabled what happen?

1716


How to do performance tunning a database in DB2 V8.2 UDB in linux

1847


HOW WE PASS PARM PARAMETERS TO CL VARIABLES FROM RPGLE?

2150


how to send multiple records which matches all the condition in the lookup transformation ? (if lookup matches the codition for duplicate values)

1593


What is the Lock Based Protocol used for?

645


What is the difference between database and server?

533


How many indexes can be created on a table?

615


What is odm database?

541


Which three commands cause a transaction to end?

597


What are database connection details?

644