Solved

Database Relations - Class - Students - Grades

Posted on 2016-10-28
7
51 Views
Last Modified: 2016-10-29
Hi,
I'm putting an access database together where I can track students assignments and grades but Im having trouble deciding which is the best designing solution.

This is the starting point...
Tables:
-  Classess       (id, classname)
- Students       (id, classid)  
- Assigments (id, classid, date)

I want to assign each class assignments students will be doing during the year...This is the starting poing of what Im trying to achieve.
Class      Assignments          Students
-------      -----------------           --------------
Y7            Exam1                    Stu1 - A
                                                Stu2 - B
                Exam 2                   Stu1 - A
                                                 Stu1 - B
Y9            Exam 1
Y8            Exam1
                Exam 2

My first though is I cant store all the grades in the table students as it will potentially will have lots of duplicate records for each students for different assigments.

Any starting point will be appreciated! Thanks!
0
Comment
Question by:arcross
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 41863614
My first though is I cant store all the grades in the table students as it will potentially will have lots of duplicate records for each students for different assigments.
you also need to think the scenarios in which same student retake the same assignment in different trimester?

as a quick start, you probably can have a db design like this:

- Courses        (id, coursename, status)
-  Classess      (id, courseid, classname, termyear, status)
- Students      (id, studentname, age, status)  
- Assigments (id, classid, date, status)
- StudentAssignment (id, assignmentid, studentid, mark, status)
0
 
LVL 8

Author Comment

by:arcross
ID: 41863620
Thanks for your answer Ryan.
Im uploading a screenshot of what I have so farCapture.PNG
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 41863626
ok, so based on what you have, I may come out with something like this, but you may or may not adopt accordingly.

- Courses        (id, coursename, status)
-  Classess      (id, courseid, classname, termyear, status)
- Students      (id, studentname, age, status)  
- Assigments (id, classid, date, status)
- StudentAssignment (id, assignmentid, studentid, markingdate, mark, status)
- Grades (id, markrangebegin, markrangeend, grade)

You may probably need a View to join tables: StudentAssignment  and Grades so that we know what grade a student get for his/her assignment if you don't want to put the grade into table: StudentAssignment  

but I'm not sure how you define "Strength" for your classes and students.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 8

Author Comment

by:arcross
ID: 41863628
Thanks again :)

Strength will be the next step.

Each student for each assignment will have at least one strength
Let'say ...
Assigment 1 -
             Student 1 - Grade A  
                         Strengths 1  - Accurate description
                         Strength 2 -  Range of vocabulary
                               ... etc..
            Student 2 -  Grade B
                           Strengths 1  - Accurate description
                       
and so on...
0
 
LVL 52

Assisted Solution

by:Ryan Chong
Ryan Chong earned 250 total points
ID: 41863631
ok, perhaps this is a good start for you

- Courses        (id, coursename, status)
-  Classess      (id, courseid, classname, termyear, status)
- Students      (id, studentname, age, status)  
- Assigments (id, classid, date, status)
- StudentAssignment (id, assignmentid, studentid, markingdate, mark, status)
- Grades (id, markrangebegin, markrangeend, grade)
- Strengths (id, strength, status)
- StudentAssignmentStrength (id, studentassignmentid, strengthid)
0
 
LVL 8

Assisted Solution

by:arcross
arcross earned 0 total points
ID: 41863802
Thanks,

Could you show me how would these tables be related on a diagram??
0
 
LVL 30

Accepted Solution

by:
hnasr earned 250 total points
ID: 41863872
but Im having trouble deciding which is the best designing solution.

The best design is to start with the final report handed to the student.
This topic lies under normalization.

Assuming each report's info as one record, list say four records.
Next try to normalize the table to lead you to the needed related tables.

Start a new access database.
Create a table listing all the fields you want to appear on a student report.
Ex.
StudentID, StudentName, Class1, Subject1, Grade1, Subject2, Grade2, InstructorName, ...

Without fully completing the above record field names, it will be hard to design the datadase, and even much harder to maintain it.

The way you are following now, may require a redesign when you come to the reporting phase. That is when  you need to unnormalize the data, in different related tables, to produce the report.

Search the net for normalizing databases.
Here are two results:
https://support.microsoft.com/en-us/kb/283878
https://msdn.microsoft.com/en-us/library/cc505842.aspx
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Report formatting issue 5 66
Win 10 Automation Error with .doCmd in Access 2 83
unknown computers in my LAN 12 93
Cant delete records in query 8 42
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question