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
What is the difference between left outer join and left join?
Can there be more than one function with a similar name in a pl/sql block?
What is the purpose of a sql?
How many joins in sql?
How to pipe multiline string to isql?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
How is a process of pl/sql compiled?
What is package in pl sql?
explain the difference between delete , truncate and drop commands? : Sql dba
Explain the significance of the & and && operators in pl sql.
Does sql backup shrink transaction log?
Why do you partition data?
What is foreign key in sql with example?
What is %s in sql?
What is the difference between joins?