Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is query optimization in sql?

988


Are subqueries better than joins?

979


How do I remove sql plus from windows 10?

1107


What is difference between primary and secondary key?

1033


What is on delete restrict?

1006


What does select top 1 do in sql?

1102


What does the hierarchical profiler does?

1065


What is the use of stored procedures?

1054


What is a data definition language?

1144


What is sql injection vulnerability?

948


How do you define a foreign key?

1010


what is a unique key ? : Sql dba

1099


Differentiate between syntax and runtime errors.

1195


What are views in sql?

995


explain about mysql and its features. : Sql dba

1021