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
How do I make my sql query run faster?
Why is sharding used?
What is foreign key sql?
Can we use delete in merge statement?
Write the alter statement to enable all the triggers on the t.students table.
How do you create a unique index?
How can a function retun more than one value in oracle with proper example?
Why functions are used in sql?
What is an implicit commit?
Why do we use %rowtype & %type in plsql?
What does where 1/2 mean in sql?
What is the purpose of a secondary key?
What is the maximum database size for sql express?
What are the most important ddl statements in sql?
Can we update views in sql?