write a query for the fifth highest salary?

Answer Posted / skumar

Hi, friends This one is working fine. I have tested.

SELECT TOP 1 t.esal
from
(
select top 5 esal from employee order by esal desc
) t
order by t.esal asc

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain partial key?

658


What is the difference between database and server?

534


What does specialization in DBMS mean?

654


Source File: Target EMPNO, SAL Empno, Format 101, 1000 101, 1000 101, 1100 101, 1000, 1100 101, 1000 101, 1000, 1100, 1000 101, 10000 101, 1000, 1100, 1000, 10000 102, 1100 102, 1100 102, 1300 102, 1100, 1300 102, 1200 102, 1100, 1300, 1200 102, 1500 102, 1100, 1300, 1200, 1500 How can i get that output using datastage(ETL) tool

1432


What does currency type mean in database?

722






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

666


What is the database url?

556


how can you perform lookup range in lookup stage expalin in detail?

1529


What is redis good for?

557


What are different types of resources?

535


What do you mean by foreign key and primary key?

625


how do you do sql tuning?

1604


Two tables emp(empid,name,deptid,sal) and dept(deptid,deptname) are there.write a query which displays empname,corresponding deptname also display those employee names who donot belong to any dept.

1388


When should you not use firebase?

614


What is a database lookup?

572