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 / raghu munukutla

SQL> select max(sal) from emp where rownum<=(select
count(sal)-1 from emp)
order by sal desc;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a key be both primary and foreign?

943


Who developed sql?

957


How do I truncate a word?

986


What is cross join example?

940


Explain the difference between rename and alias?

963


what are the different index configurations a table can have? : Sql dba

933


What are synonyms in sql?

928


How does sql profiler work?

964


What is dml and ddl?

896


What is sql scripting?

1029


Why stored procedure is better than query?

884


what are the security recommendations while using mysql? : Sql dba

1046


Is vs as in pl sql?

929


what is online transaction processing (oltp)? : Sql dba

931


What is the meaning of disabling a trigger?

1108