HomeForum
Welcome, Guest

Logic for AETL to Filter the Records on 2 Columns
(1 viewing) (1) Guest
Data Warehousing and Data integration
  • Page:
  • 1

TOPIC: Logic for AETL to Filter the Records on 2 Columns

Logic for AETL to Filter the Records on 2 Columns 4 months, 3 weeks ago #4371

  • Cesar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Dear Support

I have a source with 12 millions records and its a relational source,out of which i need to filter out some flagged records based on 2 combination of column.

Example.

key, term_exp, Flag
101 11/2000 Y
101 11/2000 Y
101 11/2000 N
102 12/2000 Y
102 12/2000 Y
102 12/2000 Y

If there is a single value with Flag 'N' then I need to drop all records for those dates,
If all values for the same date or Flag is 'Y' then I need to process all records for the 'Y' values.

Thanks in advance,
Cesar.

Re: Logic for AETL to Filter the Records on 2 Columns 4 months, 3 weeks ago #4372

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
Excellent question

You would need to sort data first so 'N' records are the first ones in the group.

Than you can compare previous record with current one to check that key and term_exp are different ones.

Mike

Re: Logic for AETL to Filter the Records on 2 Columns 4 months, 3 weeks ago #4373

  • Cesar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Mike

Can you be more specific please

Cesar

Re: Logic for AETL to Filter the Records on 2 Columns 4 months, 3 weeks ago #4374

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
I have created a working example for you.

Extract everything into c:\support folder

Mike
Attachments:

Re: Logic for AETL to Filter the Records on 2 Columns 4 months, 2 weeks ago #4384

  • Cesar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
That did the trick

Thank you,
Cesar

Re: Logic for AETL to Filter the Records on 2 Columns 4 months, 2 weeks ago #4386

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
I am glad to hear that you are making the progress.

Another thing I wanted to tell you if the source is the table you can use sql to get the data you need.

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

Testimonials

I am continually Amazed by the power and versatility of the ETL tool and the Support Team.

Thank You!

http://www.dbsoftlab.com/advanced-etl-processor/2475-de-duplication-of-addresses.html

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