how to find the second highest salary from emp table?
Answer Posted / anil maurya
select top 1 rate from HumanResources.EmployeePayHistory
where rate<(select MAX(rate) as R from HumanResources.EmployeePayHistory)
order by rAte Desc
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is clustered index a primary key?
what is the difference between truncate and drop statements? : Sql dba
How do I trace sql profiler?
How do you drop a trigger?
What are the methods of filing?
What is the usage of sql functions?
What is %rowtype in pl sql?
What is the difference between distinct and unique in sql?
Explain what is dbms?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
what are the different tables present in mysql? : Sql dba
What are different methods to trace the pl/sql code?
What is keys and its types?
What is primary key and unique key?
How to set up sql*plus output format in oracle?