how to find the second highest salary from emp table?
Answer Posted / sunil
select top 1 * from emp where sal not in (select max(sal)
from emp) order by sal desc
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How is sql used in oracle?
Why use subqueries instead of joins?
In what condition is it good to disable a trigger?
What is sql key?
Does sqlite need a server?
What is a clob in sql?
Why select is used in sql?
differentiate between float and double. : Sql dba
Which sql most popular?
What is a data definition language?
What is foreign key and example?
What do you mean by field in sql?
What is a loop in sql?
Does pdo prevent sql injection?
What is difference between my sql and sql?