I'm losing my mind on something that I feel should be quite easy.
I'm trying to convert data from 1:Many, such as the attached sample image. For example, lets say I have data like this:[TABLE="width: 500"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Item[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]Bananas, Apples[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Oranges, Kiwi, Chocolate[/TD]
[/TR]
</tbody>[/TABLE]
https://imgur.com/a/M2JCJ (sample, 1:Many)
I want to convert this to a 1:1 relationship like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Item[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]Bananas[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Oranges[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Chocolate[/TD]
[/TR]
</tbody>[/TABLE]
https://imgur.com/a/Qsmfb (desired result)
I've split the data on the commas, but I cannot figure out how to loop through and create the 1:1 relationship. The items field pre-split will have between 1 and 12 items for each "Person"
Thank you very much!
I'm trying to convert data from 1:Many, such as the attached sample image. For example, lets say I have data like this:[TABLE="width: 500"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Item[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]Bananas, Apples[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Oranges, Kiwi, Chocolate[/TD]
[/TR]
</tbody>[/TABLE]
https://imgur.com/a/M2JCJ (sample, 1:Many)
I want to convert this to a 1:1 relationship like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Item[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]Bananas[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Oranges[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]Chocolate[/TD]
[/TR]
</tbody>[/TABLE]
https://imgur.com/a/Qsmfb (desired result)
I've split the data on the commas, but I cannot figure out how to loop through and create the 1:1 relationship. The items field pre-split will have between 1 and 12 items for each "Person"
Thank you very much!