how to eliminate duplicate records from source

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ramsdanda
Participant
Posts: 8
Joined: Thu Feb 09, 2006 2:23 am

how to eliminate duplicate records from source

Post by ramsdanda »

Hi ,

How to eliminate duplicate records from the source without using remove dulicate stage and aggregator stage.any body help me the same.

Thanks and regards
ramsdanda
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

This smells like an interview question. If not, then give me more details, your source, is it a flat file or a database, why do you want to avoid using those stages? Any particular reason.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Re: how to eliminate duplicate records from source

Post by balajisr »

ramsdanda wrote:Hi ,

How to eliminate duplicate records from the source without using remove dulicate stage and aggregator stage.any body help me the same.

Thanks and regards
ramsdanda
What is your source? Is it sequential file or database?
ragunathan13
Participant
Posts: 50
Joined: Mon Sep 25, 2006 11:18 pm
Location: Chennai
Contact:

Post by ragunathan13 »

what is u'r source....

it's a sequential file or any other
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Isn't too many same question at same time? :wink:
Ramsdanda - The reason been asked is, if you have Database as source stage, you can eliminate the duplicated while selecting by doing a group by.
You can also eliminate by using Sort stage, by assiging a key and Allow Duplicates option to false.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

DSguru2B wrote:This smells like an interview question.
I didn't notice that until I looked at all of his posts. Certainly taken together nothing but fishing for interview answers.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I didnt either. I answered his first query. Then when i came to this one i sensed it. Then when i saw a third one i didnt bother commenting.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply