Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 16 Dec 2004 @ 18:32:05 GMT


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


Subj:   Help with subselect within a case statement
 
From:   Scott Thompson

Hello,

can anyone show a legal example of how to accomplishwhat the following query is attempting ? As written this query does not work. the query shown is a simplification of some logic I need to implement :

     select (CASE
                 WHEN 'abcd' not in (select code_id
                                            from codes
                                    )
                 then 'didnt find it'
                   else 'found it'
             end)


     
  <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