Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use a 'Last Update Date'

I'm using Talend Open Studio for Data Integration (6.4.0).

Moving data from Oracle to PostgreSQL; only want to update the PostgreSQL tables with new records from Oracle.

Previous successful run, I store the 'Last_Update_Date' in a separate table in PostgreSQL.

 

The Oracle input tables have a 'Create_Date' field, which I can compare to the PostgreSQL 'Last_Update_Date', and only keep the Oracle records which have date greater than 'Last_Update_Date'.

 

In summary, I want to:

Read Oracle tables, compare 'Create_Date' to the 'Last_Update_Date' I previously stored in a PostgreSQL table, insert only new records into the PostgreSQL tables.

 

Thanks for the help!

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,
Read the 'Last_Update_Date' max value from Postgresql and store the result into a global variable.
Then reuse this global to the Oracle where clause, giving something like:
"Create_Date > to_date('" + (String)globalMap.get("yourGlobal") + "')"

View solution in original post

3 Replies
TRF
Champion II
Champion II

Hi,
Read the 'Last_Update_Date' max value from Postgresql and store the result into a global variable.
Then reuse this global to the Oracle where clause, giving something like:
"Create_Date > to_date('" + (String)globalMap.get("yourGlobal") + "')"
Anonymous
Not applicable
Author

Thanks! Works perfectly.
Anonymous
Not applicable
Author

Hi,
Please how can I read the 'Last_Update_Date' max value from mysql and store the result into a global variable.