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

What is the difference between pre-select and pre-query?

621


Explain about achiever in sql?

583


What happens to the current transaction if a ddl statement is executed?

577


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1436


What is blob datatype?

569






What exactly do quotation marks around the table name do?

544


What is open database communication (odbc) in oracle?

545


HI Friends Myself Manoj,i am from bengaluru.i have 1 yr of exp in PLSQL but not upto the mark..now attending interviews but m not able to clear even 1 round..i have attended 3 interviews till today.purpose of writing this query is,i want to know the intreview topics that interviewer going to ask frequently,mainly SCENARIO based questions.IF anybody have any PLSQL projects please give it to me,it will helps me alot.Thanks for your patience.

992


What are the differences between blob and clob in oracle?

580


What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?

1522


Is oracle an open source?

632


How many types of auditing in Oracle?

566


What are the types of trigger in oracle?

573


Explain database link?

662


What is a database table in oracle?

572