Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 19 Apr 2008 @ 09:25:01 GMT


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


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.



     
  <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: 27 Dec 2016