<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Informatica 中的聚合器轉換示例 > 原文: [https://www.guru99.com/aggregator-transformation-informatica.html](https://www.guru99.com/aggregator-transformation-informatica.html) **What is Aggregator Transformation?** 聚合器轉換是一種主動轉換,用于執行聚合計算,例如求和,平均值等。 例如,如果您想明智地計算所有員工部門的薪金總和,我們可以使用聚合器轉換。 聚合操作是在一組行上執行的,因此需要一個臨時占位符來存儲所有這些記錄并執行計算。 ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/c7/0a/c70a6966e96b74a34d7597de19321ba6_565x423.png "Aggregator Transformation in Informatica") 為此,使用了聚合器緩存。 這是一個臨時的主內存,已分配給聚合器轉換以執行此類操作。 在此示例中,我們將明智地計算薪資部門的總和。 為此,我們需要一個新列來存儲此總和。 因此,首先,我們將準備一個新列。 **步驟 1** –使用以下腳本創建一個新的數據庫目標表,例如說“ sum_sal_deptwise”。 在下一步中,您將看到在 Target 文件夾下創建了新的數據庫目標表。 [下載上面的 Create_table_sal_deptwise.txt 文件](https://drive.google.com/uc?export=download&id=0ByI5-ZLwpo25X2NOdDZ3MGxXUTA) **步驟 2 –** 創建新映射“ m_ sum_sal_deptwise”。 為了創建新的映射,我們需要在映射設計器中同時使用源表(EMP)和目標表(sum_sal_deptwise),為此 1. 在映射中導入目標表“ sum_sal_deptwise”。 2. 導入源表“ emp”。 ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/b0/ca/b0ca38ae3bd98085939176891983bcd0_1459x588.png "Aggregator Transformation in Informatica") **步驟 3** –在映射中, 1. 從 Source Qualifier 中刪除 empno,ename,job,mgr,hiratedate & comm 列,以便僅保留 deptno 和 sal 列。 2. 使用工具箱菜單創建一個新的聚合器轉換,如屏幕截圖所示。 當您單擊聚合器圖標時,將創建一個新的聚合器轉換。 ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/c7/24/c7248ad68bc93ddc2027d661be925d9c_1388x689.png "Aggregator Transformation in Informatica") **步驟 4** -將 SAL & DEPTNO 列從源限定符(SQ_EMP)拖放到聚合器轉換 ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/03/af/03afd149a767029fa54bfbfbc3688031_1079x412.png "Aggregator Transformation in Informatica") **步驟 5** –雙擊聚合器轉換以打開其屬性,然后 1. 在轉換中添加新端口 2. 將端口名稱重命名為 SUM_SAL 3. 將此新端口的數據類型更改為雙倍 4. 通過選中輸出端口的復選框,將該端口作為輸出端口。 5. 單擊表達式選項 ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/e3/3f/e33f794b7fc0ede0382b873fb6a7f9b5_565x423.png "Aggregator Transformation in Informatica") **步驟 6** –在表達式窗口中 1. 添加表達式 sum(SAL),您必須編寫此表達式。 2. 選擇確定按鈕,這將返回編輯轉換窗口。 ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/0d/c4/0dc4a08f0c58e1ee5b315d3ab770ee1d_616x385.png "Aggregator Transformation in Informatica") **步驟 7** –在編輯轉換窗口中,通過在 deptno 列上選中復選框來選擇選項“ GroupBy”,然后單擊“確定”(通過在 deptno 上選擇 group by,我們指示 Informatica 按 deptno 對薪水進行分組) ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/f4/98/f4986de842a9a7d4272dd01c9eeb0be0_652x423.png "Aggregator Transformation in Informatica") **步驟 8** –將來自聚合器轉換的 deptno 和 sum_sal 列鏈接到目標表 ![Aggregator Transformation in Informatica with Example](https://img.kancloud.cn/39/0a/390a0dc193c1eb501f644f0c6995841a_1046x470.png "Aggregator Transformation in Informatica") 現在保存映射,并在為此映射創建新會話之后執行它。 目標表將包含部門薪金總額。 這樣,我們可以使用聚合器轉換來計算聚合結果。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看