Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Wed, 25 Jul 2007 @ 20:16:41 GMT


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


Subj:   Re: UPDATE, SET, & Subquery Re-visited
 
From:   Dieter Noeth

Kumaran Anantaraman wrote:

  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?  


Using Standard SQL?

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

But this is not supported in Teradata SQL.

You finally got the choice between non-supported Standard SQL and supported non-Standard SQL ;-)


Dieter



     
  <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