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
Can we use pl sql in mysql?
What is keys and its types?
Are sql connections encrypted?
What are the operators in sql?
What is difference between stored procedures and application procedures?
Can we insert data into materialized view?
What is nvarchar max in sql?
Which is faster joins or subqueries?
What are the types of variables use in pl sql?
What is the starting oracle error number?
How can we optimize a sql query?
What is sql prepared statement?
How to create an array in pl/sql?
Describe types of sql statements?
Write a sql query to get the third highest salary of an employee from employee_table?