Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Update 1 table based on 2 other tables

Update 1 table based on 2 other tables

From: UConnFan92 <mdepascale_at_corpsystem.com>
Date: 26 Jan 2005 15:06:48 -0800
Message-ID: <1106777995.280812.235440@z14g2000cwz.googlegroups.com>


UPDATE T1
SET T1.DATE_R = SYSDATE
WHERE T1.DATE_R IS NULL
AND T1.T2_ID IN ( SELECT T2.T2_ID
FROM T2,
T3
WHERE T2.T3_ID = T3.T3_ID
AND T3.CAN = 'N'
AND T1.DATE_P < (SYSDATE - T3.R_DAYS);
COMMIT; These two SQL statements works fine when executed. When I try to place them into a procedure, I get an error that says R_DAYS is not a valid column in table T3. HELP!
Thanks Received on Wed Jan 26 2005 - 17:06:48 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US