tOracleOutput insert AND update

One Star

tOracleOutput insert AND update

Hi,
I have a problem ...
I have an input file :
Desc :
code;mois;valmois1;valmois2;valmois3;
S1; 01; 11; ; ;
S2; 01; 21; ; ;
S3; 01; 31; ; ;
S4; 02; ; 42; ;
S5; 02; ; 52; ;
S3; 02; ; 32; ;
S6; 02; ; 62; ;
S7; 03; ; ; 73;
S5; 03; ; ; 53;
S3; 03; ; ; 33;
S8; 03; ; ; 83;
...
I want writting on DB (Oracle) :
Desc :
code;valmois1;valmois2;valmois3;
S1; 11; ; ;
S2; 21; ; ;
S3; 31; 32; 33;
S4; ; 42; ;
S5; ; 52; 53;
S6; ; 62; ;
S7; ; ; 73;
S8; ; ; 83;
...
with (?)
tFileInputDelimited --> ? --> tOracleOutput
I don't see how I can do that ...
Thank you for your help
Quartz
Employee

Re: tOracleOutput insert AND update

Hello,
u have some trouble, i have a respond
Replace "?" by a tAggregateRow : group by mois, use max ( or first ... ) function for valmois1, valmois2, valmois3
One Star

Re: tOracleOutput insert AND update

Hi,

use tAgregateRow with sum function (see capture) before insert on database

Jeremie
One Star

Re: tOracleOutput insert AND update

Thank you !!!!
You are very good
Quartz

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog