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


Please Help Members By Posting Answers For Below Questions

List out the acid properties and explain?

566


What does where 1 1 mean in sql?

552


What are the disadvantages of not performing database normalization?

597


How to take user input in pl sql?

705


Why procedure is used in sql?

537






Which software is used for pl sql programming?

526


What is autocommit sql?

541


what are the 'mysql' command line options? : Sql dba

561


How to execute a stored procedure?

567


Mention what plvcmt and plvrb does in pl/sql?

643


What is sqlite used for?

533


Can you select everything, but 1 or 2 fields, without writer's cramp?

502


What is difference between cursor and trigger?

561


How many types of normalization are there?

493


What does 0 mean in sql?

532