Write a SQL query which should fetch the 5th maximum salary
of an employee from the table?

Answer Posted / prashant

SELECT min(salary)
from emp
where salary in (select distinct top 5 salary from emp
order by salary desc)

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between list report and crosstab report?

804


What are the advantages of using cognos sql?

743


Explain the characteristics of cognos?

689


What is defined as Cognos Impromptu?

730


What is the deployment requirements used in cognos?

635






What is the use of powerhouse?

693


What do you mean by drill through report?

661


how many reports do u create in ur project?i don't have real time exp..tell me based on ur exp..for interview pt of view,don't say it depends on ur project and u? thanks in advance..

1781


what is the role of cognos comsultant?what actually it means?pls reply

1963


what are slowly changing dimensions? Why we are used scd?

694


Can you define folder?

646


I have created a database "TestingDB" in MS SQL Server 2005. I have set the port properties and the Cognos Service is up. But I don't see anything in the Cognos. In the administration i have set the ODBC connection and it tested successfully.If i copy the samples to the appropriate directory then i can see the samples.But I don't know how to do the same thing with my own database "TestingDB". As i have configure the cognos in my company which is having a database (very near to production database).I am a novice in cognos. Please help me out.

1737


How we check the errors before running the report?

639


how to create measures and dimensions?

698


what is the procedure for scheduling conditional rendering?

2122