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 create an oracle database?

590


List out the components of logical database structure of oracle database.

585


How to initialize variables with default values?

638


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

596


Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.

1676






An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

1626


Can select statements be used on views in oracle?

596


How different is ms access and oracle?

550


How to sort the query output in oracle?

617


How do you bind variables in oracle?

551


Give the constructs of a package, function or a procedure.

543


Difference between cartesian join and cross join?

545


Can we use bind variables in oracle stored procedure?

492


why dont we assign not null constraint as table level constraint.

2257


How to convert a string to a date in oracle database?

546