benkingery
Registered User.
- Local time
- Today, 10:00
- Joined
- Jul 15, 2008
- Messages
- 153
I have two tables, one with header records and one with "child" records. For every Header, there is one or more Children records. The header records are orders and the child records are the items on that order. So, for example an order can have more than one item.
I am essentially trying to denormalize these tables onto a "Shipping" table and I want to concatenate the items into one field for any orders that have more than one order.
For example. Order 1 has only 1 Item, so I want this:
ORDER1, ITEM1
Order 2 has 2 items, so I want it like this:
ORDER2, ITEM1 ~ ITEM2
Order 3 has 3 items, so I want it like this:
ORDER3, ITEM1 ~ ITEM2 ~ ITEM3
Does anyone have any suggestions on how to do this?
I am essentially trying to denormalize these tables onto a "Shipping" table and I want to concatenate the items into one field for any orders that have more than one order.
For example. Order 1 has only 1 Item, so I want this:
ORDER1, ITEM1
Order 2 has 2 items, so I want it like this:
ORDER2, ITEM1 ~ ITEM2
Order 3 has 3 items, so I want it like this:
ORDER3, ITEM1 ~ ITEM2 ~ ITEM3
Does anyone have any suggestions on how to do this?