How to find only %th Highest Sal

Answer Posted / sujit pingale

Ans: select distinct(a.salary) from customers a where &n =
(select count(distinct(b.salary)) from customers b where
a.salary <= b.salary);

It will ask you to enter number in input box which salary
you want to see

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is oltp (online transaction processing)? : Sql dba

528


Is sqlexception checked or unchecked?

535


How to use transactions efficiently : transact sql

540


What is before trigger?

550


What is the use of primary key?

535






Can we commit in trigger?

543


what is sql? : Sql dba

557


Can we join more than 2 tables in sql?

489


What is crud stand for?

564


What is trigger in pl sql?

555


what are the authentication modes in sql server? : Sql dba

528


How do I run pl sql in sql developer?

626


how many values can the set function of mysql take? : Sql dba

530


Why do we use procedures in pl sql?

516


Which table is left in join?

514