Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Fri, 31 Jan 2003 @ 12:08:49 GMT

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

Subj:   Re: Subqueries in update syntax
From:   Barbara George

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

I have had an issue with using aliases for the major table (e.g. t1 for table1).

Barbara George
Business Information Manager
Pick 'n Pay, Cape Town

  <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