I have one table :EID,Depid,ename,sal
I want to have max(sal) in each department.
Answer Posted / sunil
select depid,max(sal) from <table name> group by depid;
| Is This Answer Correct ? | 33 Yes | 4 No |
Post New Answer View All Answers
candidate key is subset of super key but not vice-verse explain
What is analyze command used for?
State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.
What do you mean by a database transaction & what all tcl statements are available in oracle?
How different is ms access and oracle?
How to assign a table row to a record variable?
What is BBED in Oracle?
WHAT IS ecc 6.0
What is an Oracle Instance?
What do you mean by group by clause?
How to update values in a table in oracle?
What is Undo Management Advisor in Oracle?
How to fetch the row which has the max value for a column?
What are a cluster and non-cluster index?
How many categories of data types in oracle?