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
How do I start sql from command line?
Can we perform dml on view?
Does a join table need a primary key?
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
Can we use loop in sql?
How show all rows in sql?
Can we use views in stored procedure?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
What is difference between pl and sql?
what is 'mysqld'? : Sql dba
Which is faster truncate or drop?
Explain the components of sql?
When sql appeared?
Can a table have no primary key?
differentiate between float and double. : Sql dba