- Apr 23, 2001
- 10,572
- 0
- 71
We've recently found out my daughter has food allergies and have been told to stay away from any and all nuts (especially peanuts).
However, she still seems to be having reactions, mostly some swelling, to food, so my wife and I want to track the foods she's eaten when she has a reaction.
I'm not a complete idiot when it comes to databases, I'm a dba, however, we have a data architect at work that does all the designs, I just do installs, setup, security, backups, etc...
I couldn't design a database to save my ass (or my daughter's apparently)
Here's what I need and I think the many to many relationship is screwing me up.
Each incident will almost always have multiple foods.
Each food can, and probably will end up with, multiple incidents.
Table: Incident
Columns:
-IncidentID (Primary Key)
-Timestamp
-Reaction (swelling, rash, etc..)
-FoodID (Foreign Key?) (here's where my confusions kick in)
Table: Foods
Columns:
-FoodID (Primary Key)
-FoodName
-IncidentID (Foreign Key?)
I'm doing this in access, because I've got a touch of experience with vba and access forms, but could easily use sql express and throw together a classic asp front end (not a clue when it comes to .net).
Help me ATPF, you're my only hope. (The db architect at work is a grumpy bastard!)
However, she still seems to be having reactions, mostly some swelling, to food, so my wife and I want to track the foods she's eaten when she has a reaction.
I'm not a complete idiot when it comes to databases, I'm a dba, however, we have a data architect at work that does all the designs, I just do installs, setup, security, backups, etc...
I couldn't design a database to save my ass (or my daughter's apparently)
Here's what I need and I think the many to many relationship is screwing me up.
Each incident will almost always have multiple foods.
Each food can, and probably will end up with, multiple incidents.
Table: Incident
Columns:
-IncidentID (Primary Key)
-Timestamp
-Reaction (swelling, rash, etc..)
-FoodID (Foreign Key?) (here's where my confusions kick in)
Table: Foods
Columns:
-FoodID (Primary Key)
-FoodName
-IncidentID (Foreign Key?)
I'm doing this in access, because I've got a touch of experience with vba and access forms, but could easily use sql express and throw together a classic asp front end (not a clue when it comes to .net).
Help me ATPF, you're my only hope. (The db architect at work is a grumpy bastard!)
