Here is my data:
Column:
8
7,8
8,9,18
6,8,9
10,18
27,28
I only want rows that have and 8 in it. When I do:
Select *
from table
where column like '%8%'
I get all of the above since they contain an 8. When I do:
Select *
from table
where column like '%8%'
and column not like '%_8%'
I get:
8
8,9,18
I don't get 6,8,9, but I need to since it has 8 in it.
Can anyone help get the right results?