how to find the second highest salary from emp table?
Answer Posted / ayush
select *
from (select ename,empno,salary,dense_rank()over(order by
salary desc) rank from emp)
where rank =2
| Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
Which command is used to delete a package?
How do you modify a trigger?
Can we create index on primary key?
What are aggregate functions in sql?
what is the difference between blob and text? : Sql dba
Is sql procedural language?
What is the difference between mdf and ndf files?
What is the difference between a subquery and a join?
what is a tablespace? : Sql dba
What is foreign key in sql with example?
What is the trigger in sql?
What are the different type of joins in sql?
What is the use of index in sql?
What is the difference between numeric and autonumber?
what are date and time intervals? : Sql dba