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 / jigar r gor

Select sal from emp where sal < (select max(sal)from emp)
and rownum < 2 order by sal desc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between joins?

1094


What is acid property in a database?

1086


Why left join is used in sql?

1019


What is the life of an sql statement?

1076


What is sql integrity?

1242


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1893


what is myisam? : Sql dba

1160


What is implicit cursor in pl sql?

1148


What is offset and limit in sql?

1105


how can we optimize or increase the speed of a mysql select query? : Sql dba

988


what is the difference between a web-garden and a web-farm? : Sql dba

1144


What is the maximum size of sqlite database?

1155


what is a constraint? : Sql dba

1233


How many times can we commit in a loop?

1067


Who developed sql?

1099