Aggregation
Posted: Fri Jul 17, 2009 10:10 am
All,
I have created a job which will fetch data from a table and load it in two files.
format:
fund_id
fnd_dt
fund_cd
qty
price
i will fetch the above information and store it in two file based on the below logic.
1) If fnd_cd = 'C' then i will aggregate it and store it in a file
2) if fnd_cd <> 'C' then i will store all the entries in another file.
say for example,
i have like below
1 17/jul/2009 T 22 25000
1 17/jul/2009 C 2 500
1 17/jul/2009 C 2 100
1 17/jul/2009 D 13 4566
1 17/jul/2009 E 12 4440
1 17/jul/2009 Q 20 5800
I will aggregate the above bold one and store it in a seperate file say for example file2.
my problem is all the values are coming in file2.
i.e
first row is aggregated value
remaining rows also appended from the second row onwards.
But the job shows only one row transferred. How it is possible?
where i am doing mistake?
I have created a job which will fetch data from a table and load it in two files.
format:
fund_id
fnd_dt
fund_cd
qty
price
i will fetch the above information and store it in two file based on the below logic.
1) If fnd_cd = 'C' then i will aggregate it and store it in a file
2) if fnd_cd <> 'C' then i will store all the entries in another file.
say for example,
i have like below
1 17/jul/2009 T 22 25000
1 17/jul/2009 C 2 500
1 17/jul/2009 C 2 100
1 17/jul/2009 D 13 4566
1 17/jul/2009 E 12 4440
1 17/jul/2009 Q 20 5800
I will aggregate the above bold one and store it in a seperate file say for example file2.
my problem is all the values are coming in file2.
i.e
first row is aggregated value
remaining rows also appended from the second row onwards.
But the job shows only one row transferred. How it is possible?
where i am doing mistake?