[英]How to do mapping of two sources from different database to one target table in Informatica
[英]Informatica filter based on the date column on the other table in the different database?
在 Informatica 10.2 中,我需要根據不同數據庫中的另一個表值過濾主表上的數據。
設想:
表 1 (Db1 )
Column in the tables: Name, Age, salary, last_updated
表 2(數據庫 2)
Column in the tables: Tablename, last_pull_time, NoofRecords
假設 Table2 始終返回一行(基於 where 子句,它始終為指定的表名返回 1 行)
現在在目標中,我需要加載 Table1 的數據,但我需要根據 last_pull_time (Table) 過濾數據
健康)狀況:
Table1.last_updated > Table2.last_pull_time
由於兩個表都在不同的數據庫中,如何實現此過濾器?
注意:我是 Informatica 的新手
您可以通過以下過程實現它,
獲取 Table1 作為映射中的源
將 Table2 導入為未連接的查找。 使用 table_name 作為連接條件。
在表達式轉換中,將 table_name 作為參數傳遞並返回查找的值為 last_pull_time
使用過濾器轉換過濾記錄 Table1.last_updated > 查找的結果
傳遞給目標
Source --> Expression --> Filter --> Target <br> ^ | Lookup
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.