I have one table :EID,Depid,ename,sal
I want to have max(sal) in each department.
Answer Posted / venkat
select * from emp_test where sal IN(select max(sal) from
emp_test group by deptno)
Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
How do you bind variables in oracle?
What is program global area (pga) in oracle?
What are the differences between primary key and unique key?
What is a table in oracle?
What is data block in Oracle?
How can you merge two tables in oracle?
Can we connect to ORACLE db using Windows Authentication?
Use of an integrity constraint is better to validate data. Explain
Can select statements be used on views in oracle?
How to return top 5 rows in oracle?
How do you store pictures in a database?
What are the database administrators utilities available?
What is a system tablespace?
Explain about your project and its relation to the current job position you are applying to?
What are ddl statements in oracle?