Write a query to find second highest salary of an employee.
Answer Posted / sathish p
select e1.* from (select ename,sal,rank()
over(order by sal) rank from emp) e1
where e1.rank=2;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is bind variable in pl sql?
what are the different functions in sorting an array? : Sql dba
What is cartesian join in sql?
define sql update statement ? : Sql dba
What is acid property in a database?
What are sql ddl commands?
Does truncate release storage space?
What are the dml statements?
Why stored procedures are faster than query?
How does sql*loader handles newline characters in a record? : aql loader
How many tables can you join in sql?
What is trigger with example?
How to find 3rd highest salary of an employee from the employee table in sql?
How do you write an index?
Why do we need unique key in a table?