TimEgerton
5 years agoQrew Trainee
Where to put the Join Table
Hi,
We have three Tables (1) Confirmed Cases, (2) Close Contacts and (3) Locations.
When we look at Confirmed Cases we want to see all their Close Contacts and all the Locations they have been at for a particular period of time. i.e. What Contacts were at the same Location as the Confirmed Case at the same period of time.
Confirmed Cases -> Contacts
Confirmed Cases -> Locations
When we look at Contacts we want to see all associated Confirmed Cases and common Locations.
Contacts -> Confirmed Cases
Contacts -> Locations
When we look at Locations we want to see all Confirmed Cases and all known Contacts who were at the same Location within the same period of time.
Locations -> Confirmed Cases
Locations -> Contacts
I believe there needs to be a join table in there some where (or maybe 2).
Also any suggestion regarding how we address the "at the same period of time" question. Same period of time is on the same day with a time period say 9:00 - 12:00.
I have looked at the COVID19 Contact Tracing app on the QB Exchange however it only addresses the first set of relationships.
Thanks
------------------------------
Tim Egerton
------------------------------
We have three Tables (1) Confirmed Cases, (2) Close Contacts and (3) Locations.
When we look at Confirmed Cases we want to see all their Close Contacts and all the Locations they have been at for a particular period of time. i.e. What Contacts were at the same Location as the Confirmed Case at the same period of time.
Confirmed Cases -> Contacts
Confirmed Cases -> Locations
When we look at Contacts we want to see all associated Confirmed Cases and common Locations.
Contacts -> Confirmed Cases
Contacts -> Locations
When we look at Locations we want to see all Confirmed Cases and all known Contacts who were at the same Location within the same period of time.
Locations -> Confirmed Cases
Locations -> Contacts
I believe there needs to be a join table in there some where (or maybe 2).
Also any suggestion regarding how we address the "at the same period of time" question. Same period of time is on the same day with a time period say 9:00 - 12:00.
I have looked at the COVID19 Contact Tracing app on the QB Exchange however it only addresses the first set of relationships.
Thanks
------------------------------
Tim Egerton
------------------------------