My database structure is as follows :
id values
1 10,15,50,89,200,590
2 30,50,89,45,20
3 15,20,40,50,10,500
4 20,30,90,89,50
I want to write a query to filter the data as follows :
2 30,50,89,45,20
4 20,30,90,89,50
That is, find all the lines that have the numbers 20, 50, and 89
My efforts to solve this problem :
WHERE FIND_IN_SET("20", values)