I have table with structure
id| list (VARCHAR)
--|-------
1 | a, b, c
2 | b, c, d
3 | a
I want to use single value from comma separated list as filter in other query. I thought I would achieve this with query like
SELECT * FROM A WHERE column1 IN (SELECT list FROM B WHERE id = 1)
but this way I use value
a, b, c
as filter not, for example,
a
which I need as a filter.
How can I achieve this?