I'm stuck with a foreign key usage problem. I can not find the logic for a system:
The problem: the user gives a note to each question, each one being a table field, and in the end the average is calculated and inserted into the database. However, this note, just as the average is cumulative, that is, the second user will give his / her grades and will be added with the evaluation of user 1, divided and thus the average will be generated. I can not understand how I can recover the notes and the average given by the user. Can anyone help me with logic alone, please.