1

我在 MySQL 数据库中有 7 列数据。Year1 列属于 Revenue1 列。以下列具有相同的结构。我知道如何在 SQL 中处理这个问题,但在 PDI 中不知道。谁能描述如何做到这一点?

mySQL表结构

+--------+-------+-------+-------+----------+----------+----------+
| Ticker | Year1 | Year2 | Year3 | Revenue1 | Revenue2 | Revenue3 |
+--------+-------+-------+-------+----------+----------+----------+
|        |       |       |       |          |          |          |
| ABC    |  2010 |  2011 |  2012 |   250000 |   500000 |  1000000 |
+--------+-------+-------+-------+----------+----------+----------+

PDI 所需的标准化输出:

+------------+------+-----------+---------+
|     Ticker | Year | Keyfigure |  Value  |
+------------+------+-----------+---------+
|            |      |           |         |
|     ABC    | 2010 | Revenue   |  250000 |
|            |      |           |         |
|     ABC    | 2011 | Revenue   |  500000 |
|            |      |           |         |
|     ABC    | 2012 | Revenue   | 1000000 |
+------------+------+-----------+---------+
4

1 回答 1

0

您是否尝试过使用行非规范化器?

于 2015-01-30T14:18:09.573 回答