Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Manipulating uploaded data to move data between dates

lsaundersAug 22 2014 — edited Aug 26 2014

Hi all,

I have the need to upload data on a regular basis and do some manipulation/transformation on it. Can anyone advise the best way to do this? Should I use the built in data load wizard of 4.2.5 or should I look for/create my own plugin/procedure for uploading data into a collection or something?

The table will look like this:

Date (Date)

Name (Varchar)

Volume (Number)

Manual_Volume (Number)

The uploaded data will all have date, name and volume.

I need to upload all of this data and then before it's put into the table, I need to run through each row and check the date. If it's a saturday or sunday, I need to add the volume to the next working day where the task names match and set the manual_volume to that figure, and then set the weekend day's manual_volume to 0.

For example, these lines:

DateNameVolumeManual_Volume
23/08/2014Task One200
25/08/2014Task One3000
25/08/2014Task Two2500

Would become:

DateNameVolumeManual_Volume
23/08/2014Task One2000
25/08/2014Task One30003200
25/08/2014Task Two2500

If there wasn't already a row with the same task on the monday, a new row would be created with volume = 0 and the manual volume set.

I hope that makes sense. Is this possible somehow? I'm not sure if it can be done using a transformation on the built-in data loader or whether I have to code something myself.

Many thanks!

This post has been answered by Mike Kutz on Aug 25 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2014
Added on Aug 22 2014
6 comments
1,784 views