I'm using a typo3 db. Users are stored in a table where the usergroups are inserted into a comma-separated row (usergroup = 1,5,88).
Now, I try to select a group for example by checking if a group exists in each user's dataset.
select from ...... where ... usergroup IN (1,6,9) ...
This works well, if there is only one value in the user's data (usergroup=9)
If the user has more than one usergroup (usergroup=9,11,5,3) the query above won't work.
I know this is not really normalized, bu I have no possibility to change this, so I'm searching for a way to use a selection query which can handle comma-separated values.
Is there any possibility?
hope that helps :) – Halayem Anis Oct 26 '14 at 11:41