hi,
i have a table setup where the user selects multiple check boxes from a form and it inserts into the table. this works fine and when i do a report i can do something like this:
SELECT COUNT(*) as MembersCount, MemberCounty FROM membersDetails WHERE MemOpportWith LIKE '%msg%' GROUP BY MemberCounty ORDER BY MembersCount DESC
this is good if you know the columns you are searching unfortunately each new category that is added adds a new column into the table so i need a way of doing a count of the most popular product ids from the products table with the members table above which stores the ids in multiple columns.
is this possible?
many thanks