Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Mon, 12 Feb 2007 @ 17:59:35 GMT


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


Subj:   Re: Update with left outer join
 
From:   Anomy Anom

<-- Anonymously Posted: Monday, February 12, 2007 12:43 -->

Prahlad,

Without considering the validity of your logic, here is what you can do.

     update tab1 a
      from
     (select aa.col1
      from tab1 aa
     Left outer join tab2 bb
     on a.col1 = b.col1
     where b.col1 is null) b
     set col1 = 999
     Where a.col1 = b.col1
     ;

Hope this helps.



     
  <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: 28 Jun 2020