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

Who developed oracle & when?

969


How to export data to a csv file?

1245


How to convert raw data type into text in oracle? Explain

964


What are the uses of linked server and explain it in detail?

1030


Difference between varchar and varchar2 data types?

1144


How to add a new column to an existing table with a default value?

990


Explain oracle data types with examples?

983


What is the usage of synonyms?

1096


How to list all user accounts in oracle?

994


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2918


How to install oracle database 10g xe?

980


How to start your 10g xe server from command line?

1031


How do I recompile a procedure in oracle?

929


interview questions with answer for cts

2556


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

1049