Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help with database design

Status
Not open for further replies.

isdex1

MIS
Jan 1, 2003
9
US
I would like to create a relationship between patient and allergen table. Each patient can have many allergies and each allergy can belongs to many patients.

Table tblPatient have primary key(PatientID) which is already link to a different table with a 1 to many relationship.

Please help. Thanks.
 
You may use one table for "Patient", one table for "allergen" and one table linking both and containing 2 columns, the recordID of patient and the allergenID.
That table can then be filtered by PatientID (to find all allergies of a given patient) or allergenID (to find all the patient having a given allergie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top