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 I create table without primary key?
Is join same as left join?
how to check server status with 'mysqladmin'? : Sql dba
how to concatenate two character strings? : Sql dba
How do you write an inner join query?
Is sql similar to python?
Are sql connections encrypted?
Can you have more than one key in a database?
Is sqlite free?
How to run pl/sql statements in sql*plus?
What is sql scripting?
Does sap use sql?
how can you create an empty table from an existing table? : Sql dba
How to Execute a Package in PL/SQL.?
Which are sql * plus commands?