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 the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
what is sp_pkeys? : Transact sql
What does rownum mean in sql?
How is sql used in oracle?
What is %type in sql?
Why join is faster than subquery?
What is bulk compiling in pl/sql.?
Which join condition can be specified using on clause?
what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba
Explain the the delete statements in sql?
What is optimistic concurrency control? : Transact sql
How to avoid duplicate records in a query?
What is natural join in sql?
How do you modify a trigger?
how to check server status with 'mysqladmin'? : Sql dba