I need to see if a certain integer appears in a column that contains multiple comma-delimited lists.
eg SELECT * FROM TableA
WHERE TableA.id IN (SELECT list FROM TableB)
...where 'TableB.list' is a comma-delimited list, and there are multiple rows in this TableB table, therefore meaning that there are multiple comma-delimited lists to search for the TableA.id.
Any help would be much appreciated.
Thanks
eg SELECT * FROM TableA
WHERE TableA.id IN (SELECT list FROM TableB)
...where 'TableB.list' is a comma-delimited list, and there are multiple rows in this TableB table, therefore meaning that there are multiple comma-delimited lists to search for the TableA.id.
Any help would be much appreciated.
Thanks