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 acid property in database? : Sql dba
What is trigger in pl sql?
Why we use sql profiler?
What is foreign key sql?
What are secondary keys?
What is the function that is used to transfer a pl/sql table log to a database table?
What are records give examples?
What is a function in oracle pl sql?
Is json a nosql?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
Is join same as left join?
How to find 3rd highest salary of an employee from the employee table in sql?
is it possible to pass an object or table to a procedure as an argument?
Name three sql operations that perform a sort.
Can we group by two columns in sql?