Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 14 Jul 2004 @ 14:15:39 GMT


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


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



     
  <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: 15 Jun 2023