I've got a table with a field for Merchant's name and field with the Services they provide. The Services field is a comma separated list of integers that relate to another Services table, with the Service id and the Service Name fields.
I'm trying to create a single query that joins those two, so I can have a list of Merchants, along with the Services Names. My solution so far has been to do a second loop within my initial 'foreach' loop, but that can mean 5 or 6 db calls for each Merchant name.
After some StackOverflow-ing (google-ing), I noticed that using a comma separated field is probably not the best way to go.
Anyone have either a way to do the join, or thoughts on how the db structure could be set up better? Many thanks in advance!