Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 12 Jun 2008 @ 13:36:27 GMT

  <Prev Next>   <<First <Prev

Subj:   Re: Partial field comparison
From:   Kenneth_Cove

Here is a simple sql that I think will do what you are looking for.

     SEL * FROMua_dba.Table_A
     , ua_dba.Table_B
     WHERE TRIM(table_b.COMENT) LIKE '%'||TRIM(table_a.animal)||'%'
     AND table_b.COMENTLIKE '%'||TRIM(table_a.color)||'%'
     AND table_b.PetStoreID<> table_a.PetStoreID

Kenneth Cove
Teradata DBA Team

  <Prev Next>   <<First <Prev
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016