how to find the second highest salary from emp table?
Answer Posted / jigar r gor
Select sal from emp where sal < (select max(sal)from emp)
and rownum < 2 order by sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between joins?
What is acid property in a database?
Why left join is used in sql?
What is the life of an sql statement?
What is sql integrity?
- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?
what is myisam? : Sql dba
What is implicit cursor in pl sql?
What is offset and limit in sql?
how can we optimize or increase the speed of a mysql select query? : Sql dba
what is the difference between a web-garden and a web-farm? : Sql dba
What is the maximum size of sqlite database?
what is a constraint? : Sql dba
How many times can we commit in a loop?
Who developed sql?