how to find the second highest salary from emp table?
Answer Posted / pramila
not only seceond highest . you can retrieve 2nd , 3rd.....
highest salary form this query
select min(Salary) from
(select distinct top 2 Salary from tblCategory order by
Salary desc) as tblCategory
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is query optimization in sql?
Are subqueries better than joins?
How do I remove sql plus from windows 10?
What is difference between primary and secondary key?
What is on delete restrict?
What does select top 1 do in sql?
What does the hierarchical profiler does?
What is the use of stored procedures?
What is a data definition language?
What is sql injection vulnerability?
How do you define a foreign key?
what is a unique key ? : Sql dba
Differentiate between syntax and runtime errors.
What are views in sql?
explain about mysql and its features. : Sql dba