Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 12 Mar 2015 @ 13:46:39 GMT


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


Subj:   Query using regexp_similar
 
From:   Johnpaul J

Hi Experts,

Could you help me to fix this query?

     select   col1,col2
     from
             db.table
     where
             regexp_similar(col2,'.*issu.*','i')=1;


             Output

             Col1    Col2
             7       CHMIC-ISSU:IFL goes down after ISSU, changing configuration issue
             3       BGP authentication-key issue

In the above result, first record ISSU is valid however second record got picked up wrongly. I.e how can I differentiate the issu and issue and pick only issu records?

Please assist!


Thanks,

John



     
  <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