How to retrieve 5th highest sal from emp table?

Answer Posted / lingareddy

select top 1 salary from (select distinct top 5 salary from emp order by salary desc ) a order by salary asc


if u have any doubts in SQL kindly reach with me,

Thanks & Regards,
Lingareddy.S
sabbasani.reddy1@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert character types to numeric types?

666


What are the different types of record groups in oracle? Explain each of them

681


How to create a stored program unit?

675


What is difference between sid and service name in oracle?

594


Explain the truncate in oracle?

629






How to start a new transaction in oracle?

676


How many file formats are supported to export data?

741


Describe an oracle table?

661


How to best split csv strings in oracle 9i?

684


What privilege is needed for a user to delete rows from tables in another schema?

642


What is the usage of synonyms?

684


How to connect to oracle using service name instead of sid?

626


How can I introduce multiple conditions in like operator?

628


What is Virtual Private Database in Oracle?

715


How to shutdown your 10g xe server from command line?

643