I can check single string in comma delimited string, for example finding varchar data field that contain single value such as 1 or 2 or 5
in '1,2,3,4,5'
comma delimited string as described here: https://stackoverflow.com/a/49202026/1830909, But I'm wondering how could I check if compare string isn't single solid string and is comma delimited string too. for example data field is varchar and containe comma delimited string like '1,3,4'
and I want to check if one of items such as 1 or 3 or 4 is exist in '1,2,3,4,5'
comma delimited string, I hope success to clarify that, Any help appreciated.
Clarifying: Although "keeping delimited strings in a column is a bad idea" but I think it's not matter when the biggest value just contain less than 15 item, in some situation I have too much table and I don't want increasing. Other reason is like to use json for transferring data, Parsing all values in one delimited string and save to one column of DB table and pool it from DB as an string and pars to different values.