how to get second highest salary in SQL(as/4000
Answer Posted / selvaraj v , anna univ coe
SELECT * FROM Employee e
WHERE 2=(SELECT COUNT(DISTINCT Salary) FROM Employee x
WHERE x.Salary >= e.Salary);
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is PL/SQL Records?
Can procedure in package be overloaded?
What are the most important characteristics of pl/sql?
What is the difference between subquery and correlated query?
How can I speed up sql query?
how to do backup entire database? : Transact sql
What is optimistic concurrency control? : Transact sql
What is before and after trigger?
What is the benefit of foreign key?
What is compilation error in pl sql?
What is application trigger?
What is Difference Between Unique and Primary Key Constraints?
how can we know the number of days between two given dates using mysql? : Sql dba
What is sql and its types?
What is meant by truncate in sql?