
I want to Select only those records of table TEST, having TEMPPATH value ends with IN (‘XGENCISB.CPY’, ‘XCISTABT.CPY’).
NOTE: These IN clause values will be set at run time
Please tell if this possible in a single query using sub-string??
Thanks in advance.
Try this too: With
Rightandupper:regexp, take a look at this as well: Regular Expressions in DB2 SQLEDIT as per OP’s udpates on the question
Given that theset two string will be in the same length(12 or adjust accordingly), you can try