繁体   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