Dairy Farmer
Registered User.
- Local time
- Today, 21:25
- Joined
- Sep 23, 2010
- Messages
- 244
I am in the initial stages of planning a new app. It will be used to record animals and events pertaining to each
animal. The app will store data as events relating to an animal. Some events would have mulitiple occurances. i.e.
medical treatments.
My idea is to have an initial table with only 3 fields: GUID, DOB and Breed. These are the only fields that would
never change for an animal. At birth/purchase/lease an animal is assigned a GUID.
Next would be a series of tables that I will refer to as Global Tables that would store items that would get
assigned to a GUID at some stage. These tables would consist of a 1 or 2 fields only.
Lastly are Event Tables. These assign an event to a GUID. Every event tables would have a Date field.
Example:
An anmial calves and the calf is entered onto the system;
Table_Animal_GUID
GUID = 11001
DOB = 01/01/2011
Breed = Cross
Today I receive 3 RFID transponders and I enter them in the table;
Table_Global_Transponders
Transponder = AAF123456ABC
AAF123456ABD
AAF123456ABE
Two month later I insert a transponder into the calf and assign it;
Table_Animals_Transponders
Date = 01/03/2011
GUID = 11001
Transponder = AAF123456ABC
Would this be a viable route to take? I initially thought of using lookups, but very few fields would remain constant.
Ear tags change, transponders are replaced, the animal sex may change,...
WHAT an animal can chage sex? Yes they can. A heifer is preg checked by the vet and found to have no viable
reproductive organs. So the animal must be declaired a Queen. Bulls get, ouch, the snip and become Oxen. Or, more humiliating, become teaser bulls.
PS: There will be zero table lookups or table validation. All will be handled at form level.
animal. The app will store data as events relating to an animal. Some events would have mulitiple occurances. i.e.
medical treatments.
My idea is to have an initial table with only 3 fields: GUID, DOB and Breed. These are the only fields that would
never change for an animal. At birth/purchase/lease an animal is assigned a GUID.
Next would be a series of tables that I will refer to as Global Tables that would store items that would get
assigned to a GUID at some stage. These tables would consist of a 1 or 2 fields only.
Lastly are Event Tables. These assign an event to a GUID. Every event tables would have a Date field.
Example:
An anmial calves and the calf is entered onto the system;
Table_Animal_GUID
GUID = 11001
DOB = 01/01/2011
Breed = Cross
Today I receive 3 RFID transponders and I enter them in the table;
Table_Global_Transponders
Transponder = AAF123456ABC
AAF123456ABD
AAF123456ABE
Two month later I insert a transponder into the calf and assign it;
Table_Animals_Transponders
Date = 01/03/2011
GUID = 11001
Transponder = AAF123456ABC
Would this be a viable route to take? I initially thought of using lookups, but very few fields would remain constant.
Ear tags change, transponders are replaced, the animal sex may change,...
WHAT an animal can chage sex? Yes they can. A heifer is preg checked by the vet and found to have no viable
reproductive organs. So the animal must be declaired a Queen. Bulls get, ouch, the snip and become Oxen. Or, more humiliating, become teaser bulls.
PS: There will be zero table lookups or table validation. All will be handled at form level.