Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 31 Jan 2003 @ 12:15:53 GMT


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


Subj:   Re: Subqueries in update syntax
 
From:   Doorey, Andrew ST

You can use aliases for the first table like this:

Update t1
from
table1 t1,
(select key, value1 from table 2 where ..... ) t2
set field1 = t2.value1
where t1.key = t2.key



     
  <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