Hi,
In MsAccess 97 I have a database with basically two tables: "parents" and "children"
Each parent has a unique ID number in the "parents" table. Each child has the same in the "Children" table.
The 2 tables are related one (parents) to many (children).
Parents have to pay schoolfees for their children. Fees vary according to income, etc. so there are many different school fees, which are put into the "Children" table into each child's record. One parent_id (in the children's table) may have two or more different fees.
So far my introduction.
Now here is my question: so the parents of course have to pay fees for all their children. In a query I want to see all separate fees, but also the added fees for those parents with more than one child!
The idea is to take these data into a billing system.
Who helps me with the code? All help is appreciated!
I started out like this:SELECT Sum(Children.month_fee) AS SumOfMonthfee
FROM Children;
Dago
In MsAccess 97 I have a database with basically two tables: "parents" and "children"
Each parent has a unique ID number in the "parents" table. Each child has the same in the "Children" table.
The 2 tables are related one (parents) to many (children).
Parents have to pay schoolfees for their children. Fees vary according to income, etc. so there are many different school fees, which are put into the "Children" table into each child's record. One parent_id (in the children's table) may have two or more different fees.
So far my introduction.
Now here is my question: so the parents of course have to pay fees for all their children. In a query I want to see all separate fees, but also the added fees for those parents with more than one child!
The idea is to take these data into a billing system.
Who helps me with the code? All help is appreciated!
I started out like this:SELECT Sum(Children.month_fee) AS SumOfMonthfee
FROM Children;
Dago