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

I have one table :EID,Depid,ename,sal
I want to have max(sal) in each department.

Answer Posted / vengalrao

Dear Friends,

Depends upon table u can pick one max value is possible,one
table u cannot pick max value of all columans , then u can
refer one any ne column

select depid,max(sal) from <table name> group by depid;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle join syntax?

945


How to retrieve values from data fields in record variables?

1036


How to start a new transaction in oracle?

1016


How to bring a tablespace online?

998


How to view the tablespaces in the current database?

929


What is the disadvantage of User defind function?

2239


State any two functions of oracle?

984


How to build data dictionary view an new database?

960


What is meant by a deadlock situation?

1053


What is connection pooling in oracle?

914


How to use subqueries in the from clause in oracle?

1045


What are the different types of failures that occur in Oracle database?

1016


Explain drop constraint oracle?

991


What privilege is needed for a user to insert rows to tables in another schema?

957


How to write an inner join with the where clause in oracle?

997