![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 16 Aug 2002 @ 20:40:42 GMT
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 ;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||