Archives of the TeradataForum
Message Posted: Tue, 18 Jun 2002 @ 17:57:00 GMT
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
from
(Select client_nr as Compare_Client_nr
from mi_vm.vuitsluitingen
Where
(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
;
|