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 query operators in sql is used for pattern matching?
Why do we use %rowtype & %type in plsql?
Can you join a table to itself?
what is the difference between where clause and having clause? : Sql dba
Is sql procedural language?
What are procedures used for?
Is pl sql useful?
What is cte?
What is not equal in sql?
What is trigger and how to use it in sql?
Is clustered index a primary key?
What is the benefit of foreign key?
what is cursor. write example of it. What are the attributes of cursor.
What is a record in pl/sql?
What is sql*loader and what is it used for?