Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 11 May 2005 @ 12:42:53 GMT


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


Subj:   Re: UPDATE, SET, & Subquery
 
From:   John Henderson

Try the following:

     UPDATE SUMMARY_TABLE
     FROM (SELECT COUNT(1) AS SET_FIELD FROM TABLE OF MISMATCHES) Z
     SET
     TOTAL_COLUMN = Z.SET_FIELD ALL;

Thanks,

John



     
  <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