Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 20 Feb 2004 @ 16:47:50 GMT


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


Subj:   Re: Nested case statements
 
From:   Michael Larkins

Hi Karen:

Yes, CASE statements may easily be nested within Teradata. A simple syntax structure would be like the following:

CASE .... WHEN ..... THEN (CASE .... WHEN .... THEN ..... END)
                     ELSE (CASE .... WHEN .... THEN ..... END)
END

You could also put a nested CASE statement inside a nested CASE as long as you balance your ( ).


Hope this helps,

Michael Larkins
Certified Teradata Master



     
  <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