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
What is the use of sqlerrd 3?
How subquery works in sql?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
What is a sql driver?
How many sql statements are used?
what is the difference between sql and t-sql? : Transact sql
What is attribute indicator in pl sql?
What is server name sql?
what is error ora-03113: end-of-file on communication channel?
What is a constraint?
How do I run a script in sql developer?
What does (*) mean in sql?
What are sql ddl commands?
What are the sql aggregate functions?
What is a boolean in sql?