linking tables in target database

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

linking tables in target database

Post by yaminids »

Hello there,

Can anyone explain to me how to link two or more tables in the target database with a common column 'A'. Actually I am populating this(common) column in a table and tying to link this column with the other two tables.

Thanks in advace.
-Yamini
mhester
Participant
Posts: 622
Joined: Tue Mar 04, 2003 5:26 am
Location: Phoenix, AZ
Contact:

Post by mhester »

I'm not sure if you are asking for DS help or database design help, but I think you are trying to make a connection between two tables that might have a many-to-many relationship by creating a "linking" table with only one column.

If this is the case then you should not create the "linking" table with one column, but rather you should create this table with two distinct FKs that are the keys to the two tables you are trying to relate. A field in a table should never contain multipart or multivalued data and trying to create a relationship between two tables with one column might not be a good idea.

I'm not sure I helped or was even close, but that's how I read the question.

Regards,
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

linking tables in target database

Post by yaminids »

Hello Michael,

Thank you very much for your help. I think I got the solution for my problem.

-Yamini
mhester
Participant
Posts: 622
Joined: Tue Mar 04, 2003 5:26 am
Location: Phoenix, AZ
Contact:

Post by mhester »

If you have the chance could you share the solution with the forum?
Post Reply