Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUBSTR and the LIKE Predicate

Status
Not open for further replies.

dsquare

MIS
Aug 7, 2001
4
US
Does Teradata allow the use of functions within the LIKE predicate evaluation? For example, can the following code be done in Teradata.

Where t1.f1 LIKE '%SUBSTR(t2.f2,1,3)%'

Thanks
DSquare
 
try this:
Where t1.f1 LIKE '%'||SUBSTR(t2.f2,1,3)||'%'

Did it work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top