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
Does inner join return duplicate rows?
How does postgresql compare to "nosql"?
Can we use two order by clause in query?
Is postgresql a server?
How do I save a stored procedure?
what are the drivers in mysql? : Sql dba
What is sharding in sql?
What are the advantages of indexing?
What are sql constraints?
What is varchar used for?
Is pl sql useful?
How can triggers be used for the table auditing?
Can a select statement fire a trigger?
How do I run a script in sql developer?
explain the difference between delete , truncate and drop commands? : Sql dba