I have a SQL Table which has rows like this
--------------------
id promocode
--------------------
1 test,test2
2 test,test3
3 test2,test3
Now I want to select rows which has value 'test' in the 'promocode' column.
When I use
SELECT id from table WHERE promocode LIKE 'test'
it is returning all the rows because all the rows have the string 'test' in them. But I want only 1 & 2 rows because only those two rows have the exact value I need. Can anyone help me with the query?