H
HenBar
I am trying to design a database which will track information about a
garden. I have several entities in mind so far, the most troublesome noted
below with some of the most important attributes.
PurchaseInfo:
PurchaseIdNo (PK)
Supplier
DatePurchased
TypePurchase (which would contain one of the following items[Plant, Seed,
Misc])
.....
This is where the problem arises. Depending on the data in the TypePurchase
field, one or more things can happen:
1) If TypePurchase is Plant, it will go directly into the Garden as a
Planting (probably another entity containing information such as location,
number of plants, date planted etc.) It is possible (probable actually) to
set out different numbers of plants on different dates in different
locations.
2a) If TypePurchase is Seed, it could be either sown (planted) directly into
the garden where basically the same information as 1) above would need to be
tracked (again should be different numbers of seeds on different dates in
different locations)
2b) or it could be started inside where additional information will need to
be recorded (Light (light/dark), Heat (warm, cool), date sown, number seeds
sown, Transplant (y/n), if Transplant = y, number of transplants, date
transplanted). These seeds (which are now plants) will be planted into the
garden where they will require that the same information as in item 1) above
be recorded.
3) If the type is Misc, it does not go into the garden.
My problem is that I am unsure of the best way create the additional
entities to track the information about how the Seed information should be
recorded.
Thanks in advance for any help anyone can give me with this,
Hank
garden. I have several entities in mind so far, the most troublesome noted
below with some of the most important attributes.
PurchaseInfo:
PurchaseIdNo (PK)
Supplier
DatePurchased
TypePurchase (which would contain one of the following items[Plant, Seed,
Misc])
.....
This is where the problem arises. Depending on the data in the TypePurchase
field, one or more things can happen:
1) If TypePurchase is Plant, it will go directly into the Garden as a
Planting (probably another entity containing information such as location,
number of plants, date planted etc.) It is possible (probable actually) to
set out different numbers of plants on different dates in different
locations.
2a) If TypePurchase is Seed, it could be either sown (planted) directly into
the garden where basically the same information as 1) above would need to be
tracked (again should be different numbers of seeds on different dates in
different locations)
2b) or it could be started inside where additional information will need to
be recorded (Light (light/dark), Heat (warm, cool), date sown, number seeds
sown, Transplant (y/n), if Transplant = y, number of transplants, date
transplanted). These seeds (which are now plants) will be planted into the
garden where they will require that the same information as in item 1) above
be recorded.
3) If the type is Misc, it does not go into the garden.
My problem is that I am unsure of the best way create the additional
entities to track the information about how the Seed information should be
recorded.
Thanks in advance for any help anyone can give me with this,
Hank