how to find the second highest salary from emp table?
Answer Posted / abhishek jaiswal
select salary from employees a where &nth_highest_salary =(select count(distinct salary)
from employees b where a.salary<=b.salary)
/
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we create index on primary key?
How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?
What are tables and fields?
What is the best partition size for windows 10?
What are the parts of a sql statement?
How bulk collect improves performance?
explain primary keys and auto increment fields in mysql : sql dba
What do you mean by “trigger” in sql?
What is cross join example?
What are the most important characteristics of pl/sql?
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
What is a data definition language?
how would you enter characters as hex numbers? : Sql dba
What is cte?