Hi,
When I used the upper query for update, I get the error "Derived table not allowed to update".
So I stop using derived table and convert my query as shown below :
UPDATE T1
FROM
TABLE_1 T1 ,
TABLE_2 T2 ,
TABLE_3 T3 ,
(
SELECT
COL1, COL2, COL3, COL4
FROM TABLE_4 T4
INNER JOIN TABLE_5 T5 ON T4.ID = T5.ID
INNER JOIN TABLE_6 T6 ON T5.ID = T6.ID
) LRY
SET COL55 = 33 -- T1 table's column
WHERE LRY.COL1 = TGT.COL1 AND
T1.ID = T2.ID AND
T2.ID = T3.ID
Thank you all.
Hi,
When I used the upper query for update, I get the error "Derived table not allowed to update".
So I stop using derived table and convert my query as shown below :
Thank you all.