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

Re: Where can i get informatica certification Exam dumps and details? please forward it to emailid:

1822


What does specialization in DBMS mean?

667


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

956


Difference between sql and mysql?

1634


how do you do sql tuning?

1619






What is difference between data and database?

570


HOW WE PASS PARM PARAMETERS TO CL VARIABLES FROM RPGLE?

2161


can i use the commands "modify" and Change in DB2 to alter my column datatype and its name in a table?

1681


What is odm database?

547


A design problem was given in which I was supposed to make a design for the data base for a given problem.

565


Should I store images in database?

592


What is the difference between data source and database?

561


Why do we need distributed database?

556


What are different types of data models available? Explain with example?

673


how node connect with cpu?

1684