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
what is reindexing?
6. Display the client name and order date for all orders using the traditional method.
What are the original export and import utilities?
How do you bind variables in oracle?
How do we create privileges in oracle?
What is the difference between Delete, Truncate and Drop in Oracle?
Explain the use of inctype option in exp command.
What is a sub query? What are its various types?
What is the disadvantage of User defind function?
How to write a left outer join with the where clause in oracle?
An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?
How to define an anonymous procedure without variables?
Can we protect our pl/sql source code?
What is a table index in oracle?
From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.