I have a table like this
fieldA | fieldB
-----------------
a | a,b,c
-----------------
b | a,c
-----------------
c | x,y,z
where fieldA is a string and fieldB is a CSV list.
I need to build a query that would do something similar to what I was hoping to get from this query:
SELECT * FROM table WHERE fieldA NOT IN fieldB
(would select if fieldA is not on the CSV list in fieldB)
or an inferior but usable query might me something like this:
SELECT * FROM table WHERE fieldA NOT LIKE %fieldB%
(would select if fieldA is not a substring of fieldB)
Result would be something like this:
fieldA | fieldB
-----------------
b | a,c
-----------------
c | x,y,z