Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 16 Aug 2002 @ 20:19:46 GMT


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


Subj:   Re: CASE in Ins/Sel
 
From:   deWet, Johannes M

Try this:

INSERT INTO NEWTABLE
( SUBSTRFLD)
SELECT
(CASE
WHEN SUBSTR(WHOLEFLD,4,1) IN ('N','S') THEN SUBSTR(WHOLEFLD,4,1)
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: 27 Dec 2016