Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle 9 Query Question.....Please help....
OK, different hint:
select a.empno, a.sal + nvl(comm,0) as total_sal
from emp a
where (a.sal + nvl(a.comm,0) ) = (select max(b.sal + nvl(b.comm,0)) as
total_sal
from emp b)/
EMPNO TOTAL_SAL
---------- ----------
7839 5000
HTH -- Mark D Powell -- Received on Mon Apr 17 2006 - 09:37:29 CDT
![]() |
![]() |