how to find the second highest salary from emp table?
Answer Posted / prasanna
select A.* from employee A where 1=(select count(distinct
B.sal) from employee B where B.sal>A.sal)
| Is This Answer Correct ? | 63 Yes | 71 No |
Post New Answer View All Answers
can a stored procedure call itself or recursive stored procedure? : Sql dba
What is foreign key sql?
What mean sql?
Explain exception handling in pl/sql?
How subquery works in sql?
Why commit is not used in triggers?
what is the use of set statement in tsql? : Transact sql
What are sql commands?
what are aggregate and scalar functions? : Sql dba
What is a call statement? Explain with an example.
What is lookup table in sql?
How does join work in sql?
How do you copy a table in sql?
What is use of package in pl sql?
What are the triggers associated with image items?