K
Kostas
I was told by some helpful folks in here that I shouldnt explicitly define
indexes (dupl. ok) for each field in a junction table (m-m relationship) as
access automatically creates hidden indexes for them when referential
integrity is enforced.
Is it safe to suppose that the same happens with simple foreign keys in a
1-N relationship? For instance, assume one table Dept and one table
Employees. One dept has many employees and one employee belongs to one only
department. DepartmentID is a foreign key in employees. Do I need to
explicitly specify an index (duplicates ok) for this field in the employees
table? Or should I just link the fields in relationship window and enforce
referential integrity?
And one more thing: If Access creates hidden indexes in these situations
why doesnt it make them obvious by changing the index field value to "Yes"?
Thanks,
Kostas
indexes (dupl. ok) for each field in a junction table (m-m relationship) as
access automatically creates hidden indexes for them when referential
integrity is enforced.
Is it safe to suppose that the same happens with simple foreign keys in a
1-N relationship? For instance, assume one table Dept and one table
Employees. One dept has many employees and one employee belongs to one only
department. DepartmentID is a foreign key in employees. Do I need to
explicitly specify an index (duplicates ok) for this field in the employees
table? Or should I just link the fields in relationship window and enforce
referential integrity?
And one more thing: If Access creates hidden indexes in these situations
why doesnt it make them obvious by changing the index field value to "Yes"?
Thanks,
Kostas