DB2 Multiple records

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
KPReddy
Participant
Posts: 28
Joined: Wed Jan 25, 2006 12:41 pm
Location: Philadelphia,PA

DB2 Multiple records

Post by KPReddy »

Hi,
I wrote a sql in DB2 and saving the data to sequential file.
Allow multiple instance is also NOT checked.
I am getting 2 copies of same record, i used distinct also in the query but the problem continues, if i use PK like or PK= in the query then i am getting unique records. Please help me understand why i am getting multiple records.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Multiple instance has no bearing on getting multiple records. Your sql is not correct, not sure what else to say. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
KPReddy
Participant
Posts: 28
Joined: Wed Jan 25, 2006 12:41 pm
Location: Philadelphia,PA

Post by KPReddy »

Hi Chulett,
I made the query pretty simple to check, direct select from a single table, if i run the query against the database directly i am getting unique records.
gpatton
Premium Member
Premium Member
Posts: 47
Joined: Mon Jan 05, 2004 8:21 am

Post by gpatton »

Is the table partitioned or copied on each DB2 node?

Check the configuration file you are using to see if it is referencing multiple nodes.
KPReddy
Participant
Posts: 28
Joined: Wed Jan 25, 2006 12:41 pm
Location: Philadelphia,PA

Post by KPReddy »

Table is not partitioned, though there are 8 nodes in configuration file, i guess DB2 runs sequentially.
Post Reply