I have 2 tables
entries
answer_key
Students submit their answers to a database through a form over the web. I want to put the correct answers in the answer key and then total the number correct for each student. So I will need a query to show the count of correct answers for each student. I assume I will have to match up each field in the key with each field in the entry table, but don't know how to go about this.
The entries table consists of a studentid and a bunch of question fields and a total_correct field. The answer_key table just consists of the question fields.
Example:
Key
1. A
2. B
3. C
4. D
Student1
1. A
2. B
3. B
4. D
Total Correct 3
Dodge20
entries
answer_key
Students submit their answers to a database through a form over the web. I want to put the correct answers in the answer key and then total the number correct for each student. So I will need a query to show the count of correct answers for each student. I assume I will have to match up each field in the key with each field in the entry table, but don't know how to go about this.
The entries table consists of a studentid and a bunch of question fields and a total_correct field. The answer_key table just consists of the question fields.
Example:
Key
1. A
2. B
3. C
4. D
Student1
1. A
2. B
3. B
4. D
Total Correct 3
Dodge20