Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 18 Jun 2002 @ 17:57:00 GMT

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

Subj:   Re: Aliasses
From:   Shridhar Suvarna

The query below Should work for you. I do not have an explanation as to why the column from sub-query shoul be renamed. My experience tells that if you use the same columnname in sub-query and use alias Teradata somehow does not like it.

May be somebody out there has an explanation for this behaviour.

God Luck,

--Shridhar Suvarna

update mi_mail.aims_out
(Select client_nr as Compare_Client_nr
   from mi_vm.vuitsluitingen
   (overleden + niet_mailen + niet_ingezetene +
    taal_niet_ned + Postcode_ongeldig + Decentraal +
    Bagger + Geblokkeerd + Curatele + Beschikkingsmacht +
    Vermogensbeheer + Postretour) <> 0) Derrived_Table
set mailcode = substr(mailcode,1,5) || 'B'
where mi_mail.aims_out.client_nr = Compare_client_nr

  <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: 27 Dec 2016