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 / jyotiprokash

Select * from emp e1 where 1=(select count(distinct sal) from emp e2 where e1.salary<e2.salary)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of stored procedures?

1044


which tcp/ip port does sql server run on? : Sql dba

1026


What is anonymous block in sql?

1120


How to select unique records from a table?

1055


What do we need to check in database testing?

1017


what are integrity rules?

1022


Can one improve the performance of sql*loader? : aql loader

1046


What is auto increment feature in sql?

1122


What is the use of <> sql?

978


how to drop an existing table in mysql? : Sql dba

1042


What does stand for in sql?

964


How is pl sql different from sql?

1086


What is a system versioned table?

980


How to sort the rows in sql.

1073


What is dml statement?

954