Archives of the TeradataForum
Message Posted: Sat, 19 Apr 2008 @ 09:25:01 GMT
Subj: | | Cross join in update statement |
|
From: | | kishore |
How to write below statement in Teradata without error.
UPDATE CATALOG_ITEM FROM CATALOG_ITEM
CROSS JOIN FORECAST_PLAN FP
SET CURRENT_PERIOD_ID = FP.IMPORT_PERIOD_ID,
CURRENT_EFFECTIVE_PERIOD_ID = FP.IMPORT_PERIOD_ID
WHERE CATALOG_ITEM.NATIVE_PK = inSKU_ID;
Error:
SPL1027:E(L23), Missing/Invalid SQL statement'E(3706):Syntax error: Joined Tables are not allowed in FROM clause.'.
Regards
Kishore KK.
|