Write a query to find second highest salary of an employee.
Answer Posted / dilip
select rank,sal from(select rownum rank,distinct(sal) from
emp order by sal desc)
where rank=2;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to disable a trigger name update_salary?
Explain the significance of the & and && operators in pl sql.
What are the different parts of a package?
What is the use of <> sql?
what are the different tables present in mysql? : Sql dba
What are inner and outer joins examples of both?
Why we use join in sql?
What is normalization sql?
Explain locks? : Transact sql
Can we perform dml on view?
how to use myisamchk to check or repair myisam tables? : Sql dba
What is the difference between inner join and natural join?
Which normal form is best?
what is cross join? : Sql dba
What is the plv (pl/vision) package offers?