Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm a bit new to Talend and I have created some jobs to fetch data from APIs and posting into a Database. Now I need to modify the jobs where, when I run the job it should delete at 60 days of data and extract again and then merge with the historical data. Can anyone please help me to solve this issue.
Thanks in advance
Use a global variable to hold the dates that you want to prune, and reload. Then use the global variable in your "WHERE" statement in your SQL. For example in a tjava component:
Thanks for the reply. Can you please elaborate more o doing this task. I meant the components which I have to use and how to configure them. I'm pretty new to Talend that's why
You will be using the t(your_db)sqlRow component to prune. To insert records you can use the t(your_db)Output or t(your_db)OutputBulkExec.
I recommend you read the on-line documentation on the database components for the database you are using. In that documentation there is an example for each.
Also, there is an e-book on Amazon called "Talend Open Studio Cookbook". This is a good book that will make you productive quickly.