how to calcuate the second highest salary of he employee
Answer Posted / eshwer
Try this
select * from (SELECT empno,sal, DENSE_RANK() OVER (ORDER BY sal desc) AS SalRnk
FROM scott.emp) where salrnk=2;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is before trigger?
What are the different ways to optimize a sql query?
What is dynamic sql in pl sql?
How to display the records between two range in Oracle SQL Plus?
How do I start pl sql?
Does sql use python?
Is sql considered coding?
How do you determine the current isolation level? : Transact sql
What is the maximum rows in csv?
Can ddl statements be used in pl/sql?
how many values can the set function of mysql take? : Sql dba
What is a dirty read sql?
What is the use of %rowtype?
what is the difference between a web-garden and a web-farm? : Sql dba
what are different types of keys in sql?