Write a query to find second highest salary of an employee.
Answer Posted / oboyah
SELECT e1.* from ( SELECT last_name, salary,
DENSE_RANK() OVER ( ORDER BY salary DESC) rank
FROM employees) e1 where e1.Rank = 2;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Can there be 2 primary keys in a table?
Does truncate need commit?
how to start mysql server? : Sql dba
How many joins in sql?
Does pl/sql support create command?
Is and as keyword in pl sql?
Does db2 use sql?
What is replication id?
Why is normalization important?
what is the difference between cluster and non cluster index? : Sql dba
What is a constraint? Tell me about its various levels.
how many groups of data types? : Sql dba
What is sql*loader?
How to run pl sql program in mysql?
what are the different type of sql's statements ? : Sql dba