I´m having a bad time with a SQL query. I´m using oracle default tables:
\'EMP\' TABLE
http://imageshack.us/photo/my-images/850/sinttuloxps.png/
AND
The following query will omit duplicate values
SELECT DEPTNO, MAX(SAL) FROM EMP GROUP BY DEPTNO;
The following query will include the duplicate values
SELECT * FROM EMP WHERE (DEPTNO,SAL) IN ( SELECT DEPTNO, MAX(SAL) FROM EMP GROUP BY DEPTNO)