簡體   English   中英

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 的新手

您可以通過以下過程實現它,

  1. 獲取 Table1 作為映射中的源

  2. 將 Table2 導入為未連接的查找。 使用 table_name 作為連接條件。

  3. 在表達式轉換中,將 table_name 作為參數傳遞並返回查找的值為 last_pull_time

  4. 使用過濾器轉換過濾記錄 Table1.last_updated > 查找的結果

  5. 傳遞給目標

    Source --> Expression --> Filter --> Target <br> ^ | Lookup

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM