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

Answer Posted / pavan kumar

select * from emp e where 5=(select count(distinct sal)
from emp e where e.sal<=sal)

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between powerplay transformer and power play reports?

682


What is difference between page break and section report?

805


hi, i am searching job in cognos and datastage, does any can provide me the real time experieced scenerios and questions related to cognos and datastage projects, so if anyone provide me the documents related this can very helpful to me, my mail id is tchiru01@yahoo.com

1871


what do u mean by bridge group? where we r using this one?

1623


------------- How to identify the Revenue Column in Report?

1929






i have taken quantity on ANx-axis & months on y-axis(months r not in oreder )when i run the reoprt i need months in proper order .how can i do this ?

1656


How to do Performence Tunning in Cognos Reports?

2149


how can we Upgrad the reports from version Impromptu 6.0 to 7.0 and Power Play from version 6.6 to 7.0 ?

1951


What do you understand by the term 'aggregate advisor?'

631


What are the different types of important services used in cognos?

673


What are the main services provided by application tier?

645


What is called materialized view?

685


Can we test the report other than manual testing?

1778


Tell me about Dnamic and Static Dashboards?

1940


Write types of folders present in cognos?

658