Archives of the TeradataForum
Message Posted: Mon, 21 Apr 2008 @ 22:00:34 GMT
Subj: | | Re: Cross join in update statement |
|
From: | | Anomy Anom |
<-- Anonymously Posted: Mon, 21 Apr 2008 21:33 -->
I may be missing something here but, off the top of my head, the syntax is
UPDATE CI
From
CATALOG_ITEM CI,
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;
This is assuming inSKU-ID is in FORECAST_PLAN and is the prime key value.
|