how to find the second highest salary from emp table?
Answer Posted / anuj maheshwari
select sal from emp where sal=(select max(sal) from emp
where sal<(select max(sal) from emp));
| Is This Answer Correct ? | 34 Yes | 5 No |
Post New Answer View All Answers
Is sqlexception checked or unchecked?
What are aggregate functions in sql?
How subquery works in sql?
Can we call dml statement in function?
How is a PL/SQL code compiled?
What is a crud api?
how mysql optimizes distinct? : Sql dba
What is full form of rtm?
What is the reports view in oracle sql developer?
What is AUTH_ID and AUTH_USER in pl/sql ?
tell us something about heap tables. : Sql dba
What are the types of subqueries?
What is mutating sql table?
Does sql support programming?
What is rank function in sql?