HomeForum
Welcome, Guest

Generating record number within the group
(1 viewing) (1) Guest
Data Warehousing and Data integration
  • Page:
  • 1

TOPIC: Generating record number within the group

Generating record number within the group 1 year, 10 months ago #902

  • TimJ
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi,

Here is my task that I am trying to implement.

I have fixed width text file with customer names, addresses and some other fields. Every unique household (which is defined as combination of address and last name field) has household identified, so every record on a file has ID and all the records with the same address and last name of a person have the same ID.

What I need to do is to assign a sequence code starting at 1 for the first record in the group with the same ID, then assign 2 to the second record in the group and etc.

I guess I should sort the data file first by Household ID than assign the sequence number somehow.

Can I do it using one of your ETL tools?

Tim

Re:Generating record number within the group 1 year, 10 months ago #903

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
Using Advanced ETL processor any version

Connect data reader to your text file
Connect Sorter object and add sort data by ID Field
Add data transformer open it and
add sequence transformation function
Double click on Sequence and set Reset Value to
When field changes value

That should do the trick

Mike
PS
Watch our online tutorials to get started
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

"Using Visual Importer ETL was a lot easier than we expected it to be, and had a lot more functionality than our other software."

Daniel Boel,
Information Technology Manager

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