I am trying to flatten out a normalized data model involving product data. I have two tables - a product table with an id field and a product_details table with a FK product_id referencing product.id. The details has multiple rows for each product id. Is it possible to flatten this so I have something like table 3 below. I looked into the Flatten step, but that seems to be based on the number of target fields specified as opposed to a key/id. Any thought on whether a row denormalizer would help?
id | name |
1 | Product 1 |
2 | Product 2 |
product_id | detail |
1 | detail 1 |
1 | more detail 1 |
2 | detail 2 |
2 | more detail 2 |
3 | still more detail 2 |
id | name | detail1 | detail2 | detail3 |
1 | Product 1 | detail 1 | more detail 1 | null |
2 | Product 2 | detail 2 | more detail 2 | still more detail 2 |