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

Which command is used to call a stored procedure?

1055


Which constraints we can use while creating database in sql?

1121


What are sql objects?

1129


How do I remove sql developer from windows 10?

1185


how to check server status with 'mysqladmin'? : Sql dba

1134


Explain dml and ddl?

1059


What is trigger point?

1058


How do I view a table in sql?

1043


What are aggregate functions in sql?

1225


how many triggers are allowed in mysql table? : Sql dba

1107


What operators deal with null?

1156


What is the purpose of cursors in pl/sql?

1204


Does a join table need a primary key?

1001


Can we use two order by clause in query?

1018


Is join same as left join?

1083