I have the below column in table x where SharedBagsIds contains the string (1,3,4)
I am trying to write an SQL query that contains the in clause as follow
select * from .... where id in (x.SharedBagsIds)
but this line id in (x.SharedBagsIds)
is generating an error
Conversion failed when converting the varchar value '1,3,4' to data type int.
is there a way to fix this issue?