Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 15 Dec 2011 @ 19:49:04 GMT


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


Subj:   Re: UPDATE through a JOIN syntax
 
From:   Diehl, Robert

David,

I would use the update with a from

     Update a
     From db1.tbl1 a
          ,db2.tbl1 b
     Set col1 = b.col1
     Where a.key = b.key

If you want to fix your logic below, just clarify the database.tablename on the "from table" columns.


Thanks,

Robert Diehl
Travelocity Data Warehouse DBA



     
  <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