write a query for the fifth highest salary?

Answer Posted / arshi

SELECT MAX(Salary) AS Expr1
FROM TableName
WHERE (Salary NOT IN
(SELECT TOP (4) MAX(Salary)
AS Expr1
FROM TableName AS
TableName_1
GROUP BY Salary
ORDER BY SalaryDESC))

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

After normalization, what are the conditions which have to keep in mind to de-normalize it?

608


can u combine pipeline parallelism and partition parallalism? how and whan?

1880


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

2062


define primary key index, bitmap index, hash index,virtual indwx

2838


Explain the record term used in database.

660






Hi, I want do a course in DWH Informatica Administrator and Abinito Administrator please tell me some institute in chennai and i am searching for a job,so please help me and my mail id : satty_rh@yahoo.co.in Thanks, Kumar

1572


aht is the difference b/w network & hierarchial & relational dbms????

1769


How is image stored in database?

573


How to do Data integrity testing? Who does this testing (Developer or tester)?

1603


what are wrappers and build ups and what it's use?

1690


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

1579


Is it good to store images in database?

544


Explain the field term used in database.

545


You are creating a Index on EMPNO column in the EMPLOYEE table. Which statement will you use?

775


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

1664