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 get the second max val for every group in a table

Answer Posted / suman rana

select * from emp e where 2 = ( select count(distinct sal)
from emp e1 where e1.deptno = e.deptno and E.SAL <= E1.SAL)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the parts of a database trigger.

988


What is set operator oracle?

921


ur a sql devoloper...what is the process in ur company for finding the database BUGS .. seperate DB testers are there? or devr.s are manage? if DB TESTERS in there what is the process

2200


What is a relational database management system?

1062


How to name query output columns in oracle?

1130


How to connect to oracle using service name instead of sid?

963


Which environment variables are absolutely critical in order to run the OUI?

2069


What are advantages of dateset in datastage?

2199


What is data type in oracle?

1040


How do I connect to oracle?

975


When do I need to use a semicolon vs a slash in oracle sql?

1026


In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.

1869


what is a Nested Loop join?

2039


Explain oracle 12c new features for developers?

993


What is an oracle user account?

930