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 the basic structure of an sql?
explain the difference between bool, tinyint and bit. : Sql dba
What is user in sql?
What is pls_integer in pl sql?
When sql appeared?
Can you call pl/sql package functions from within a fast formula?
What is an ndf file?
How can I get the number of records affected by a stored procedure?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
What is string join?
What is the purpose of using pl/sql?
What are the types of variables use in pl sql?
Can sql function call stored procedure?
What is multiple columns?
How to run sql statements through the web interface?