1

如何使用 Informatica PowerCenter Designer 透视行数据?比如说,我有一个名为 address.txt 的源文件:

+---------+--------------+-----------------+
| ADDR_ID |     NAME     |     ADDRESS     |
+---------+--------------+-----------------+
|       1 | John Smith   | JohnsAddress1   |
|       1 | John Smith   | JohnsAddress2   |
|       2 | Adrian Smith | AdriansAddress1 |
|       2 | Adrian Smith | AdriansAddress2 |
+---------+--------------+-----------------+

我想像这样透视这些数据:

+---------+--------------+-----------------+-----------------+
| ADDR_ID |     NAME     |    ADDRESS1     |    ADDRESS2     |
+---------+--------------+-----------------+-----------------+
|       1 | John Smith   | JohnsAddress1   | JohnsAddress2   |
|       2 | Adrian Smith | AdriansAddress1 | AdriansAddress2 |
+---------+--------------+-----------------+-----------------+

如何在 Informatica 中执行此操作?

4

1 回答 1

2

如果每个人都有两个地址,您可以在转换中使用FIRSTandLAST函数Aggregator

聚合器转换

于 2013-10-10T13:01:54.363 回答