日期:2014-05-20 浏览次数:20682 次
SELECT C,D FROM YOUR_TABLE A WHERE ROWID!=(SELECT MAX(ROWID) FROM YOUR_TABLE E WHERE A.C=E.C AND A.D=E.D);
------解决方案--------------------
假设mgr不重复
SELECT job,mgr FROM emp A WHERE ROWID = (SELECT max(ROWID) FROM emp E where E.mgr=A.mgr);