I have this sql in a TSmartquery connected to a grid.
Code: Select all
select /*+ FULL(Tbl1) */
EMPNO, ENAME, JOB, MGR, HIREDATE
, SAL, COMM, DEPTNO
from JDORLON.EMP Tbl1
minus
select /*+ FULL(Tbl2) */
EMPNO, ENAME, JOB, MGR, HIREDATE
, SAL, COMM, DEPTNO
from SCOTT.EMP Tbl2This query was used when I changed a value in the EMPNO column:
Code: Select all
UPDATE JDORLON.EMP
SET
EMPNO = :EMPNO
WHERE
EMPNO = :Old_EMPNOThanks,
-John