Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 14 Jul 2004 @ 17:28:55 GMT


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


Subj:   Re: Changing a column name while concatenating
 
From:   Ray, Edmond

OK try this:

     SEL customername || 'abc' || custid || (CASE WHEN customername
             || 'abc' = 'something' THEN '1' ELSE '0' END) FROM customer;

It is kind of verbose but it works.


Edmond Ray
Senior Data Warehouse Consultant
Special Programs, NCR Government Systems



     
  <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