Results 1 to 6 of 6
  1. #1
    cohnhead is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    20

    Calculating Percent of a Test Score

    I have created a database which lists a set number of skills in a table and each student's level of the specific skill ("Mastered" and "Not Mastered").



    I have these skill levels defined as the results of a pre-test (ResultPre) field and a post-test (ResultPost) field. Each student has a student id field (StudentID) and a skill field (SkillID) for each skill, along with the pre and post fields.

    What I would like to do is find a percentage for each student on the pre test for the total skills "Mastered" and a percent for each student on the post-test for the total number of skills "Mastered".

    So, for example:

    Student A - Pre-test - 10 skills "Mastered"; 15 skills "Not Mastered" = 40% and on the Post-Test - 20 skills "Mastered"; 5 skills "Not Mastered" = 80%

    How can I do this?

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I think you should start with a review of your tables and relationships. You are more familiar with your environment and the data than readers.
    However, I see the following setup for tables as a starting point for consideration. Purple text identifies proposed Table.
    Sorry for the bad lines in the drawing --)
    Code:
    Student                                       Skills
      StudentID                                    SkillID
       |    |         StudentPreTestSkills        |  |
       |    |         StudentPreSkillIDPK         |  |
       |    +----> StudentIdFK                    |  |
       |              SkillIDFK<------------------+  |
       |             StudentLevel                     |
       |             PreTestDate                       |
       |                                                 |
       |             StudentPostTestSkills             |
       |             StudentPostSkillIDPK              |
       +---------> StudentIdFK                      |   
                    SkillIDFK<---------------------+
                    StudentLevel
                    PostTestDate

  3. #3
    cohnhead is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    20
    Thank you! I have my tables set up pretty well (I think), but I was wondering how to calculate percentages with one of my tables. I have a table which lists every studentID (fk) next to every skillID (fk) and a pretest field (Mastered or Not Mastered) and a post-test field (Mastered or Not Mastered). What I want to know is how I can calculate the percentage of each individual studentID which has "Mastered" on the pre-test, and the same for the post-test.

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Let's consider you have 30 Skills. Do you expect every Student to Master all of the Skills?
    How do you determine which Skills of the 30 total Skills should be used when dealing with Student X?

    If all students are expected to Master all Skills then the percentage becomes

    Count of Skills a StudentHasMastered/30 * 100

  5. #5
    cohnhead is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    20
    Quote Originally Posted by orange View Post
    Let's consider you have 30 Skills. Do you expect every Student to Master all of the Skills?
    How do you determine which Skills of the 30 total Skills should be used when dealing with Student X?

    If all students are expected to Master all Skills then the percentage becomes

    Count of Skills a StudentHasMastered/30 * 100

    I'm trying to set it up like you said Count of Skills a StudentHasMastered/30 * 100, but I want to see the pre-test and post-test side by side.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Instead of trying to do all in query which would require multiple and/or nested queries or domain aggregate expressions, consider a report using Grouping & Sorting features and aggregate calcs in header/footer sections. This will allow display of detail records as well as summary data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 25
    Last Post: 11-23-2014, 02:43 PM
  2. Test String test besed on table data
    By igourine in forum Programming
    Replies: 3
    Last Post: 12-01-2013, 06:16 AM
  3. Replies: 1
    Last Post: 06-24-2013, 02:24 AM
  4. Test Score Results
    By bob.bud in forum Queries
    Replies: 5
    Last Post: 01-18-2012, 04:59 PM
  5. Keying in Test answers to Access DB from Written Test
    By CityOfKalamazoo in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums