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
Which type of cursor is used to execute the dml statement?
What is composite data type in pl sql?
What is the purpose of cursors in pl/sql?
Can we insert data into materialized view?
How many types of cursors are available in pl/sql?
What is pl/sql table? Why it is used?
what is uncommittable transactions? : Transact sql
What is rollback?
What are the parts of a sql statement?
How do I count rows in sql query?
What is sqlca in db2?
What are different sql data types?
Can we call procedure in select statement?
Which join is default?
How do you modify a column in sql?