What is the best way to linked records within a table. For example I have a
table with 1000 records. Out of those I want to link together those who are
related.
For a one to many relationship (classic example is a personnel database, where
all but the top boss's record contains a SupervisorID foreign key to the
EmployeeID of the supervisor) just include a field of the same datatype as the
primary key as a link to the other record.
For a many to many relationship - e.g. in a family or geneology database,
where each person may be related to many others, by different kinds of
relationships - you may want an additional Relationships table with three
fields: FromID, ToID, and Relationship. For example, if PersonID 316 is Fred
Flintstone and 294 is Wilma Flintstone, you'ld have records
316; 294; Husband
294; 316; Wife
John W. Vinson [MVP]