adspace
How to find only %th Highest Sal
Answer Posted / sujitpingale
Ans: select distinct(a.salary) from customers a where &n =
(select count(distinct(b.salary)) from customers b where
a.salary <= b.salary);
Enter value in inputbox. If you enter 1 then it will give
highest salary
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is bcp? When does it used? : Sql dba
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
Is primary key clustered index?
What is the current version of postgresql?
Can we rollback truncate?
If a cursor is open, how can we find in a pl/sql block?
how to escape special characters in sql statements? : Sql dba
What is the best sql course?
Is inner join faster than left join?
what is sql server agent? : Sql dba
Does group by remove duplicates?
Can delete statement be rollbacked?
What is your daily office routine?
What is the current version of sql?
Do we need to rebuild index after truncate?