how to get second highest salary in SQL(as/4000
Answer Posted / prabir
Select * From employee emp1 Where 2 = (Select
Count(Distinct(emp1.salary)) From employee emp2 Where
emp2.salary > emp1.salary)
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
How exception is different from error?
What is sql deadlock?
How do I run sql?
What is an inconsistent dependency?
What is a common use of group by in sql?
What is data abstraction in sql?
Determine if oracle date is on a weekend?
Is not equal in sql?
What is a sql driver?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
what are the different index configurations a table can have? : Sql dba
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
How to process query result in pl/sql?
What is package in pl sql with an examples?
Explain the difference between 'between' & 'and' operators in sql