gpt4 book ai didi

informatica-powercenter - Informatica:上一列值显示

转载 作者:行者123 更新时间:2023-12-05 01:18:24 25 4
gpt4 key购买 nike

源表中的数据如下:-

Empno   Ename  sal
101 Allen 1000
102 Alex 2000
103 Tom 1500
104 Cb 2100

我希望输出如下:-

Empno   Ename  sal
101 Allen 0
102 Alex 1000
103 tom 2000
104 Cb 1500

您能告诉我使用哪种转换可以达到结果吗?另外请让我知道逻辑。

最佳答案

添加一个带有两个变量端口的表达式转换:

PORT             EXPRESSION
in_sal N/A
v_previous_sal v_current_sal
v_current_sal in_sal
out_sal v_previous_sal

阅读文档中的这段摘录以了解端口顺序:

The Integration Service evaluates ports in the following order:

  1. Input ports. The Integration Service evaluates all input ports first since they do not depend on any other ports. Therefore, you can create input ports in any order. Since they do not reference other ports, the Integration Service does not order input ports.

  2. Variable ports. Variable ports can reference input ports and variable ports, but not output ports. Because variable ports can reference input ports, the Integration Service evaluates variable ports after input ports. Likewise, since variables can reference other variables, the display order for variable ports is the same as the order in which the Integration Service evaluates each variable.

    For example, if you calculate the original value of a building and then adjust for depreciation, you might create the original value calculation as a variable port. This variable port needs to appear before the port that adjusts for depreciation.

  3. Output ports. Because output ports can reference input ports and variable ports, the Integration Service evaluates output ports last. The display order for output ports does not matter since output ports cannot reference other output ports. Be sure output ports display at the bottom of the list of ports.

关于informatica-powercenter - Informatica:上一列值显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14090025/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com