Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 29 Apr 2009 @ 20:30:52 GMT


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


Subj:   Update / case statement
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, April 29, 2009 16:25 -->

Hi,

I need to update a teradata table, but the following statement fails:

     update table_A
     set table_A.column1 = case when  table_A.column2=table_B.column2
                                             and  table_A.column2=table_C.column2
                                                 and table_C.column3=table_D.column3
                                                 then (case when  table_B.column4 = '1'
                                                                  and table_C.column4 = '2
                                                                      then   Y
                                                             else   N
                                             end)
                                      end

Your help would be greatly appreciated.



     
  <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