Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 16 Aug 2002 @ 20:40:42 GMT


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


Subj:   Re: CASE in Ins/Sel
 
From:   Meade, Cornelius

Yes...I have done similar things from time to time....I would probably format it something like this:

INSERT INTO NEWTABLE SELECT
(CASE WHEN SUBSTR(WHOLEFLD,4,1) = 'N' THEN 'N'
      WHEN SUBSTR(WHOLEFLD,4,1) = 'S' THEN 'S'
      ELSE NULL END) AS SUBSTRFLD
FROM OLDTABLE ;


     
  <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