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

Why are cursors used?

1119


what are the join types in tsql? : Transact sql

1064


Is inner join same as self join?

1111


What is row_number () in sql?

978


What are the two characteristics of a primary key?

970


Can we edit a view in sql?

983


What are the different parts of a package?

1113


is it possible to pass an object or table to a procedure as an argument?

1129


Can you do multiple joins in sql?

1048


What is trigger explain with example?

1033


What is the use of sql trace?

950


What are inbuilt functions in sql?

1054


How do I truncate a word?

1087


What is the use of pl/sql table?

1063


How can we avoid duplicating records in a query?

979