Write a query to find second highest salary of an employee.
Answer Posted / deepshikha
SELECT MAX (sal)
FROM emp a,
(SELECT MAX (sal) max_sal
FROM emp) abc
WHERE a.sal < abc.max_sal
ORDER BY sal DESC;
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
how can we repair a mysql table? : Sql dba
How to get unique records from a table?
What is clustered index in sql?
Is not null in sql?
How do you update a table in sql?
What are the different types of joins in sql?
Why do we need sharding?
What are the benefits of pl sql?
Whis is not false in primary key?
Define implicit and explicit cursors.
Explain autonomous transaction.
What is microsoft t sql?
what is the use of double ampersand (&&) in sql queries?
How many scalar data types are supported in pl/sql?
is mysql query is case sensitive? : Sql dba