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

What is table scan and index scan?

610


Is data lake a database?

561


Is it good to store images in database?

544


Give the syntax of exception handling used in DBMS?

647


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

561






What is the difference between primary key, foreign key and candidate key?

642


Please post the scenerois for writing the complex sql queries , for my practice.Can be any query if you cannot solve.

2063


What is a Database?

592


Which three commands cause a transaction to end?

592


On startup, the transaction log of a database has filled and recovery has suspended, what can I do?

550


There are three servers are run by Oracle, MS Access and .Net. What are the procedure fetching the values of two variables from two servers among these?

1700


How do I setup a database connection?

516


What is the purpose of TNS?

655


what is the role of auditor in auditing data oriented applications?

1923


Can you tell any two advantages of stored procedures?

588