Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 21 Apr 2008 @ 22:00:34 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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.



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023