M
mgupta
I am working on creating data model from existing database using MS
Visio 2007 Profesional Edition.
Existing database is w/o PK-FKs & I am working to create relational DB
which enforces RI.
I have a lookup table which contains language codes,used by main
table. The problem ,I am running into, is that these
languagecodes(from lookup table) are used by 3 columns in main table.
So, I am wondering how can I enforce PK-FK relationship here.
As in...
language_code from lookup table is PK and it has to associated w/
column(s) existing in main table.
Something like following:
Lookup Table Main table
Column#1 Column A
column#2 Column B
Column C
Column D
I want to link Column#2 to Column A, Column B and Column C.
FYI:
I think VISIO doesn't allow relating a single column (Of lookup table)
to 3 different columns(of main table). It associates with Either ColA
or ColB or ColC.. not with all of them
Please advise
Thanks
Visio 2007 Profesional Edition.
Existing database is w/o PK-FKs & I am working to create relational DB
which enforces RI.
I have a lookup table which contains language codes,used by main
table. The problem ,I am running into, is that these
languagecodes(from lookup table) are used by 3 columns in main table.
So, I am wondering how can I enforce PK-FK relationship here.
As in...
language_code from lookup table is PK and it has to associated w/
column(s) existing in main table.
Something like following:
Lookup Table Main table
Column#1 Column A
column#2 Column B
Column C
Column D
I want to link Column#2 to Column A, Column B and Column C.
FYI:
I think VISIO doesn't allow relating a single column (Of lookup table)
to 3 different columns(of main table). It associates with Either ColA
or ColB or ColC.. not with all of them
Please advise
Thanks