Archives of the TeradataForum
Message Posted: Wed, 14 Jul 2004 @ 14:15:39 GMT
Subj: | | Re: Changing a column name while concatinating |
|
From: | | Anomy Anom |
<-- Anonymously Posted: Wednesday, July 14, 2004 10:12 -->
Concatenation with Case Statement is not possible.
Try to include concatenated stuff in the case statement -
select (case when customername || custid=something then customername
|| '' else customername
|| custid end) new_custid || (case when new_custid='' then deptno='';
There may be other ways too but this would be the easiest.
Thanks
|