pivottable
Registered User.
- Local time
- Today, 10:29
- Joined
- Jul 16, 2014
- Messages
- 27
Hi all,
I'm a non-developer (clinician) that is trying to design a database for capturing delivery of babies.
I have a one to many relationship between tblDeliveries and tblBabies, because there can be twins, triplets etc.
I want to count the number of Caesarean Sections but as a proportion of deliveries instead of babies.
This gets tricky if a multiple birth has different modes of delivery, for example twin 1 has a normal delivery, then a problem arises and twin 2 requires a C Section. I would want to count this as a C Section.
A stripped down version of tables and fields which I think I need to use to achieve this:
tblDeliveries
DeliveriesPK
DeliveryDate
tblBabies
BabiesPK
DeliveriesFK
DeliveryTime
DelMode
There is a LEFT JOIN between tblDeliveries!DeliveriesPK and tblBabies!DeliveriesFK in the query I have created, where I am trying to do the counting.
I want to count the DelMode of the youngest baby for any given DeliveriesFK. This is because it is not possible for a normal delivery to follow a C Section during one delivery.
Any suggestions on how to build the right expression for Expression Builder would be great!
I'm a non-developer (clinician) that is trying to design a database for capturing delivery of babies.
I have a one to many relationship between tblDeliveries and tblBabies, because there can be twins, triplets etc.
I want to count the number of Caesarean Sections but as a proportion of deliveries instead of babies.
This gets tricky if a multiple birth has different modes of delivery, for example twin 1 has a normal delivery, then a problem arises and twin 2 requires a C Section. I would want to count this as a C Section.
A stripped down version of tables and fields which I think I need to use to achieve this:
tblDeliveries
DeliveriesPK
DeliveryDate
tblBabies
BabiesPK
DeliveriesFK
DeliveryTime
DelMode
There is a LEFT JOIN between tblDeliveries!DeliveriesPK and tblBabies!DeliveriesFK in the query I have created, where I am trying to do the counting.
I want to count the DelMode of the youngest baby for any given DeliveriesFK. This is because it is not possible for a normal delivery to follow a C Section during one delivery.
Any suggestions on how to build the right expression for Expression Builder would be great!
Last edited: