A
Anonymous
Guest
Guys
I have 2 tables pre_results and post_results. they have the same structure but different data.
pre_results is used for storing data or scores of students who took the pre exam post_results is for the post exams.
both have the same columns date, coursecode, q1, q2... q10 (for storing 1 for correct and 0 for wrong) and total. both tables have prefix of pre and post.
now the problem is i am going to make a report of both tables
i will get the summary with percentage of a specific course with specific range date.
how can i get the percentage of all correct answers for the entire test if 1 record is stored on one row of data?
i can use the count right? but i have to get other records too.
waaah. please help.
My report should be like this
Coursename: PHP
DATE----------------------PRE RESULT------------------------------POST RESULT
March 1, 2005------------- 70% -------------------------------------- 80%
June 2, 2005--------------- 80% ------------------------------------- 85%
Average-------------------- 75% ------------------------------------- 82.5 %
thank you
I have 2 tables pre_results and post_results. they have the same structure but different data.
pre_results is used for storing data or scores of students who took the pre exam post_results is for the post exams.
both have the same columns date, coursecode, q1, q2... q10 (for storing 1 for correct and 0 for wrong) and total. both tables have prefix of pre and post.
now the problem is i am going to make a report of both tables
i will get the summary with percentage of a specific course with specific range date.
how can i get the percentage of all correct answers for the entire test if 1 record is stored on one row of data?
i can use the count right? but i have to get other records too.
waaah. please help.
My report should be like this
Coursename: PHP
DATE----------------------PRE RESULT------------------------------POST RESULT
March 1, 2005------------- 70% -------------------------------------- 80%
June 2, 2005--------------- 80% ------------------------------------- 85%
Average-------------------- 75% ------------------------------------- 82.5 %
thank you