Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 08 Jan 2007 @ 13:27:34 GMT

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

Subj:   Re: UPDATE with a SUBQUERY
From:   Michael Larkins


It returned an error because it is an illegal use of the SET. You can set a column equal to a value or a column. So what you have to do is make your (select...) a column. So you need to use a derived table. Therefore your SQL should look like this:

     from ((select count(*) as cnt from ) dt
      Set  =  cnt
      And ;

Hope this helps,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor

  <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