Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 02 Aug 2002 @ 14:31:47 GMT


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


Subj:   Re: Update through a Join
 
From:   MARK FERGUSON

I'm confused......won't there be issues with which CON_SRKY_ID to use in the SET clause in this example? Also, according to the Teradata reference manual the FROM clause should only be used as follows:

"Use the FROM clause only for these reasons:

* to provide the outer scope of a table with fields referenced in a subquery, making the subquery a correlated subquery

* to permit reference to a derived table"

Not that I'm a "Ref. Manual Thumper" and the FROM will work but I believe there is a performance loss. Have you tried:

UPDATE RMSCON_V01
SET CON_SRKY_ID = DEVCONS_V.CON_V01.CON_SRKY_ID
where RMSCON_V01.CON_ID = DEVCONS_V.CON_V01.CON_ID
and RMSCON_V01.COM_ID = DEVCONS_V.CON_V01.COM_ID
and RMSCON_V01.BUL_ID_ORIG = DEVCONS_V.CON_V01.BUL_ID_ORIG
and RMSCON_V01.CON_CREATE_DT = DEVCONS_V.CON_V01.CON_CREATE_DT
and RMSCON_V01.CON_CREATE_TM = DEVCONS_V.CON_V01.CON_CREATE_TM;

The difference being in the SET clause.


God Luck,

Mark K. Ferguson
LVM Team
Enterprise Data Warehouse
Federated Systems Group



     
  <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