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
How to get execution statistics reports on query statements?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
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
Explain what are clusters?
What is the difference between I and G in Oracle?
Hi Can any one tell me what are the API's used in requisition import.
what is a Nested Loop join?
what is the difference between substr and instr function in oracle?
What is program global area (pga) in oracle?
What is a data lock in oracle?
How to create an initialization parameter file?
how to join query for one source type is oracle another source type is sql server ?
How would you best determine why your MVIEW couldnt FAST REFRESH?
How do we get field detail of a table?
What are the extensions used by oracle reports?