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 difference between function and procedure in pl/sql?
What does trigger mean in psychology?
what are the authentication modes in sql server? : Sql dba
How can the performance of a trigger be improved?
What are sql commands?
What is before trigger?
what is the difference between undefined value and null value? : Sql dba
What is the main difference between sql and pl/sql?
Is sql dba a good career? : SQL DBA
What is the plv (pl/vision) package offers?
Does sqlite need a server?
What is the difference between local variables and global variables?
What does joining a thread mean?
how to create a new table in mysql? : Sql dba
what is acid property in database? : Sql dba