K
Kostas
Hello,
I am having a hard time finding documentation for this online.
1.Say I have a junction table to define a M:N (many to many relationship).
2. The junction table has two fields that are primary keys in the tables
that have the many to many relationship (these fields are the foreign keys
to the junction table).
3. Those two keys form a composite primary key for the junction table.
4. Those keys are indexed (index yes no duplicates) since they are primary
keys in their parent tables.
My question is twofold:
1) Should those fields be indexed explicitly again in the junction table in
access?
2) Speaking outside the framework of access and in the more general context
of database theory, what is the preffered methodology on such composite
keys?
a. Create a combined index on the composite key?
b. Create two separate indexes for each attribute of the composite key?
Many thanks for any replies, this one has got me searching for some hours
now,
Kostas
I am having a hard time finding documentation for this online.
1.Say I have a junction table to define a M:N (many to many relationship).
2. The junction table has two fields that are primary keys in the tables
that have the many to many relationship (these fields are the foreign keys
to the junction table).
3. Those two keys form a composite primary key for the junction table.
4. Those keys are indexed (index yes no duplicates) since they are primary
keys in their parent tables.
My question is twofold:
1) Should those fields be indexed explicitly again in the junction table in
access?
2) Speaking outside the framework of access and in the more general context
of database theory, what is the preffered methodology on such composite
keys?
a. Create a combined index on the composite key?
b. Create two separate indexes for each attribute of the composite key?
Many thanks for any replies, this one has got me searching for some hours
now,
Kostas