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