Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 11 Nov 2002 @ 16:40:32 GMT

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

Subj:   Re: Case syntax problem
From:   David Wellman


Try the following
,cast ((CASE
    WHEN AL1.Itin_Cmpmt_Cd = 'C'
      THEN  'P'
    WHEN  AL1.Itin_Cmpmt_Cd = 'F'
      THEN  'P'
      ELSE 'E'
  END) AS CHAR(1)) as "Cabin_Class"


Ward Analytics Ltd: Information in motion (www.ward-analytics.com)

  <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