newmediaguy
Programmer
Hi Guys
I am having trouble getting my head round writing a query to producte the results i need.
What i currently have is a table in the following format:-
ID Cat_ID Man_ID UName UEmail DistributorID
011 10 23 Glen glen@glen 23,250,10,103
012 25 45 chris chris@chris 106,25,419
The distributor is a column that is the friendly key for another table. I will then be able to return the values from the distributor table (DistributorID = distributor.ID)
I have never split values in a column and then tried to use them......
I need to produce the following results
Cat ID Man ID Uname Uemail distributor
11 23 Glen glen@ 23
11 23 Glen glen@ 250
11 23 Glen glen@ 10
11 23 Glen glen@ 103
So spliting out the distributor column for each unique distributor id, which will always seperated by a comma (it is inserted as an array)
Any thoughts would be appreciated.
Many thanks
Glen
I am having trouble getting my head round writing a query to producte the results i need.
What i currently have is a table in the following format:-
ID Cat_ID Man_ID UName UEmail DistributorID
011 10 23 Glen glen@glen 23,250,10,103
012 25 45 chris chris@chris 106,25,419
The distributor is a column that is the friendly key for another table. I will then be able to return the values from the distributor table (DistributorID = distributor.ID)
I have never split values in a column and then tried to use them......
I need to produce the following results
Cat ID Man ID Uname Uemail distributor
11 23 Glen glen@ 23
11 23 Glen glen@ 250
11 23 Glen glen@ 10
11 23 Glen glen@ 103
So spliting out the distributor column for each unique distributor id, which will always seperated by a comma (it is inserted as an array)
Any thoughts would be appreciated.
Many thanks
Glen