adspace


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

Can we use distinct and group by together?

1147


how to start mysql server? : Sql dba

1279


how to use regular expression in pattern match conditions? : Sql dba

1125


what is bcp? When does it used? : Sql dba

1065


Does group by remove duplicates?

1121


How do I remove duplicates in two columns?

1202


define sql insert statement ? : Sql dba

1110


What is the current version of postgresql?

1188


Is inner join faster than left join?

1287


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


Do we need to rebuild index after truncate?

1154


what is dbms? : Sql dba

1070


What is your daily office routine?

2353


Is primary key clustered index?

1028


how to escape special characters in sql statements? : Sql dba

1124