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...

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / tejasvita dhuri

select id,salary from (select id,salary,ROW_NUMBER()over (order by salary desc) as rowcol from emp)A
where A.rowcol=2

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of stored procedure?

1005


Is sql between inclusive?

1133


Is full outer join same as cross join?

970


what are the differences between require and include, include_once and require_once? : Sql dba

1023


What is the difference between explicit and implicit cursors in oracle?

1069


What is a unique key?

1056


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

1209


What are the different types of triggers?

1137


what is uncommittable transactions? : Transact sql

996


What are the set operators in sql?

1073


What is using in sql?

1094


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

961


discuss about myisam index statistics collection. : Sql dba

952


What is spool?

1055


Define union, minus, union all, intersect ?

1007