how to find the second highest salary from emp table?
Answer Posted / dinesh rajput
select sal from(select sal from
(select distinct sal from emp order by sal desc)
where rownum<=2 order by sal asc)
where rownum=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are tables in sql?
what is isam? : Sql dba
What is null in pl/sql?
Which join is default?
How do you use a while loop in pl sql?
describe mysql connection using mysql binary. : Sql dba
What is a call statement? Explain with an example.
Why is the cursor important?
How can we implement rollback or commit statement in a trigger?
What is group function in sql?
Does sql*plus have a pl/sql engine?
What is a loop in sql?
what is self-join? : Sql dba
What are hotfixes and patches?
Does sql support programming?