Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 27 Mar 2009 @ 01:38:32 GMT


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


Subj:   Re: Sub query in case statement
 
From:   Liu, Jingchen

     select
     ORG_CD,
     case
        when ORG_LEVEL='SUB_LOB' then 'Y'
     else 'N'
     End as "Sub_Lob_Indicator"
     from hr_nonhr ;

Cheers,

Jingchen



     
  <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