Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 25 Jul 2007 @ 18:19:59 GMT


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


Subj:   UPDATE, SET, & Subquery Re-visited
 
From:   Anantaraman, Kumaran

A previous post asked how to code an UPDATE statement if the expression in the SET clause were to use a subquery.

And suggested answers were like :

     UPDATE SUMMARY_TABLE
     FROM
       (
         SELECT COUNT(1) TOTAL_COLUMN
         FROM TABLE_OF_MISMATCHES
       ) b
     SET TOTAL_COLUMN = b.TOTAL_COLUMN

However, the FROM clause is (from manual) '.. a Teradata extension to the ANSI SQL-2003 standard.'. So, then, how to code the above UPDATE functionality without using FROM clause?



     
  <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