I have two columns with comma separated values, want to find out if all the coma separated elements from col1 are present in col2 or not.
For example
col1 | col2
=========================
AB | AA,BB
BC | CC,DD,BC
AB,BC | AB,AA,BB,BC
CD,EF,GH | AA,BB,CD,EF
This should give me the following results
col1 | col2 | Col1 Elements in Col2?
====================================================
AB | AA,BB | N
BC | CC,DD,BC | Y
AB,BC | AB,AA,BB,BC | Y
CD,EF,GH | AA,BB,CD,EF | N