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 the benefit of foreign key?
Can we update views in sql?
what is schema? : Sql dba
describe transaction-safe table types in mysql : sql dba
What is data types in sql?
what is the bond code in materialized view?
How to display the current date in sql?
Does mysql_real_escape_string prevent sql injection?
Difference between table function and pipelined function?
Can unique keys be null?
Does group by remove duplicates?
What is the difference between functions, procedures, and packages in pl/sql?
what are the performance and scalability characteristics of mysql? : Sql dba
What is materialized view in sql?
How do you create a db file?