how to find the second highest salary from emp table?
Answer Posted / manjusha
select * from emp e1
where 2=(select count(distinct salary) from emp e2
where e1.sal<e2.sal);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is a stored procedure? : Sql dba
how do you know if your mysql server is alive? : Sql dba
What is the life of an sql statement?
Why use stored procedures?
what is difference between delete and truncate commands? : Sql dba
What is t sql in sql server?
What is sql profiler in oracle?
What is the basic form of sql query?
How do I find duplicates in a single column in sql?
what is the difference difference between procedure and packages
Which software is used for pl sql programming?
what is the functionality of the function htmlentities? : Sql dba
Can we insert in sql function?
What are schema-level triggers?
What is sql query optimization?