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

select max(sal) from emp where sal in(select sal from emp
where sal<>(select max(sal) from emp))

/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the key differences between SQL and PL SQL?

1217


What is a left join?

959


How does pl sql work?

965


What is scalar function?

1058


Can we write ddl statements in functions?

1118


How to get help at the sql prompt?

1118


Why are indexes and views important to an organization?

959


Can 2 queries be executed simultaneously in a distributed database system?

1148


How you improve the performance of sql*loader? : aql loader

1015


Why do we create views in sql?

1155


Which data type is a composite type?

991


What is embedded sql in db2?

1022


what are the types of subquery? : Sql dba

1106


What are the different set operators available in sql?

1026


What are aggregate and scalar functions?

1025