Reputation: 73
In Informatica 10.2, I have requirement to filter the data on the main table based on the other table value which is in the different database.
Scenario :
Table1 (Db1)
Column in the tables: Name, Age, salary, last_updated
Table2 (Db2)
Column in the tables: Tablename, last_pull_time, NoofRecords
Assume Table2 always return one row (based on the where clause it always return 1 row for the specified table name)
Now in the target, I need to load the data of Table1 but I need to filter the data based on the last_pull_time (Table)
Condition :
Table1.last_updated > Table2.last_pull_time
How to achieve this filter since both the tables are in different database?
Note: I'm new to Informatica
Upvotes: 0
Views: 1020
Reputation: 5155
You can achieve it thriugh below process,
Get Table1 as source in the Mapping
Import Table2 as unconnected lookup. Use table_name as join condition.
In expression transformation, pass table_name as argument and return the value of lookup which is last_pull_time
Use filter transformation to filter the records Table1.last_updated > lookup's result
Pass it to the target
Source --> Expression --> Filter --> Target <br>
^
|
Lookup
Upvotes: 1