What is the structure of your database? What are some examples of entries?
How would you calculate this manually?
We need many more details.
BUT, if you are a student and this is homework of some kind, why don't you
try asking your peers, your teacher, or referring to your classroom
documentation? It would be cheating for us to just give you the answer.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.