HomeForum
Welcome, Guest

Reload strategy for data transformation
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Reload strategy for data transformation

Reload strategy for data transformation 4 months, 3 weeks ago #4360

  • Chris
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
Hi,

Need Immediate Help. I need to add reload strategy to my data transformation.

The reload strategy is, when transformation fails it should delete the records that were inserted the same day.
But if the session is successful, we want to delete the old records from previous day.

Can we do it with SQL After?

Thanks,
Chris

Re: Reload strategy for data transformation 4 months, 3 weeks ago #4361

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
Chris

SQL after will not work in your case

You would need to create a package like on picture attached.

Assuming that you are using Oracle you can use the following syntax

delete from orders where trim(order_date)=trim(SYSDATE) -- deleting today's orders

delete from orders where trim(order_date)=trim(SYSDATE) - 1 -- deleting yesterday's orders

Happy NY
Peter
Attachments:

Re: Reload strategy for data transformation 4 months, 2 weeks ago #4369

  • Chris
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
Thank you Mike

I will try that

Chris

Re: Reload strategy for data transformation 4 months, 2 weeks ago #4370

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
Another thing you can try is to calculate number of records before and after the transformation.

Mike
  • Page:
  • 1
Time to create page: 0.17 seconds

Testimonials

Visual Importer ETL  saved us 25-30 hours per month. Much of that comes from being able to build in error checking into the scripting. I've even been able to script corrections that run on the fly triggered by the error checking on incoming order files.

Gene Kovacs,
Director of Technical Business Operations,
A2B

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top