Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 11 May 2006 @ 18:53:41 GMT


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


Subj:   Re: CASE with LIKE operator
 
From:   Fred W Pluebell

The "valued" CASE syntax always implies a test for equality. If you want to use the LIKE operator you must use "searched" CASE:

     select case
     when a like '%app%' Then 'Apple'
     when a like '%mic%' Then 'Microsoft'
     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