how to find the second highest salary from emp table?
Answer Posted / shalina bajaj
select sal from emp a
where $number = (select count(distinct(sal))
from emp b
where a.sal <= b.sal);
| Is This Answer Correct ? | 11 Yes | 17 No |
Post New Answer View All Answers
What is error ora-01000: maximum open cursors exceeded
How to find 3rd highest salary of an employee from the employee table in sql?
How many types of triggers are there in pl sql?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
What is the difference between microsoft sql and mysql?
Are pl sql variables case sensitive?
Differentiate between pl/sql and sql?
What is write ahead logging in sql server?
How do I view a sql trace file?
List the ways to get the count of records in a table?
How is use pl and sql?
Is sql developer case sensitive?
What is sql select statement?
What is a .db file?
What is a record in pl/sql?