digitalxni
Registered User.
- Local time
- Today, 19:51
- Joined
- Nov 18, 2009
- Messages
- 42
Hey guys!
I'm currently in the processes of creating a simple database in order to create quarterly reports based on the data inside it. It's made up of two tables: Carers and Children with a one to many relationship (one carer can have many children). Below are the layouts of the tables.
Carers
Child:
Here are the queries I'm having to run and how I'm doing the ones that I can do. At the moment they are all separate queries but is there any way to condense them all? Otherwise in my report I'll be having several subreports in one master!
Total no. of families registered - Counting the amount of entries in the carer table.
Total no. of children registered - same as above but using the child table
Total no. of families/children using the service this quarter - same as the above two but checking for a 'true' in the AccessedThisQuarter field.
Postcode of each new user this quarter - Selecting the postcode field and display the postcodes where the date registered is between today and 3 months ago.
Number of children accessing this quarter by age: I'm having trouble with this one. I need to show a table with age groups on one side (under 1, 1, 2, 3, 4) and the amount of children on the other side. The problem I'm having is not being able to show the age group if no child falls into it.
The last one I'm having trouble with is similar to the one above but is to do with ethnic origins. I'll have the ethnic origins on the left then two columns: one for children and one for adults (carers and their partners) and I just can't get my head around that one!
Thanks for reading, hopefully someone can come up with some ideas on how to improve my shoddy design!
/xni
I'm currently in the processes of creating a simple database in order to create quarterly reports based on the data inside it. It's made up of two tables: Carers and Children with a one to many relationship (one carer can have many children). Below are the layouts of the tables.
Carers


Child:

Here are the queries I'm having to run and how I'm doing the ones that I can do. At the moment they are all separate queries but is there any way to condense them all? Otherwise in my report I'll be having several subreports in one master!
Total no. of families registered - Counting the amount of entries in the carer table.
Total no. of children registered - same as above but using the child table
Total no. of families/children using the service this quarter - same as the above two but checking for a 'true' in the AccessedThisQuarter field.
Postcode of each new user this quarter - Selecting the postcode field and display the postcodes where the date registered is between today and 3 months ago.
Number of children accessing this quarter by age: I'm having trouble with this one. I need to show a table with age groups on one side (under 1, 1, 2, 3, 4) and the amount of children on the other side. The problem I'm having is not being able to show the age group if no child falls into it.
The last one I'm having trouble with is similar to the one above but is to do with ethnic origins. I'll have the ethnic origins on the left then two columns: one for children and one for adults (carers and their partners) and I just can't get my head around that one!
Thanks for reading, hopefully someone can come up with some ideas on how to improve my shoddy design!

/xni