I have table in which I need to compare the values from two columns.
Col1 Col2 Col3
------------------------------------
1 sssXYZ2121 XYZ
Now a match may not be a perfect word to word match.
E.g. of a match
Col2 Col3
----- --------------------
XYZ XYZ (word to word match)
XYZ xyz (can be case insensitive)
XYZ gxyzf (need to search within a string )
XYZ xyzjjjjjjjjj (need to search within a string )
XYZ gggggXYZ (need to search within a string )
XYZ Xavier Yellow Zebra (Match the full form of the abbreviation)
Now I need to find all the rows in which the value in Col3 do not match Col2.
I am using Oracle 10g.
regexthen, given Oracle supports them. What if you haveXYZ,XavierX Yellowy Zebraz? Can you please show us your table data, otherwise we will continue to shoot in the dark :D