write a query for the fifth highest salary?

Answer Posted / venkates

select distinct(a.sal) from emp a where 5=(select
count(distinct(b.sal)) from emp b where a.sal<=b.sal)

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to reject duplicates in source sequential file and if by filter option then where is that filter option in the sequential file.

1115


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

1703


When should you not use firebase?

615


Data structure used to implements a menu:

632


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

2075






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

1935


What is the difference between data source and database?

550


Explain database partitioning. What is its importance?

680


Explain entity type?

631


How to do performance tunning a database in DB2 V8.2 UDB in linux

1849


What are the validations performed on the source data? If there are junk data available in the source data, how to eliminate it?

1591


What is a Database?

597


What is Object Oriented model?

626


Is it good to store images in database?

550


What is lagging in DBMS ?

818