473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help with school assessment database design please

I need a database to record students names etc and also to record their
levels at six times during the year for a range of subjects. Obviously
there can only be one entry per student subject per time period.

I have some of the design figured but am a bit stuck. Can someone point
a relative newbie in the right direction.

Table 1
STudents

StudentId (Primary Key)
FirstName
SecondName
Dob
etc just fixed reference data

Table 2
Subjects

SubjectId (Primary Key)
Subject (Maths, English, Science etc)

Table 3 (The link one I am having trouble with)
StudentId
SubjectId
Year ( 7 to 11)
Timeperiod (1 to 6)
Assessment (Levels 1 to 8)

I am not sure if this design is correct what should be keys in table 3
or exactly how to set up the relationships.

Thanks for any help.

Mike

Nov 13 '05 #1
1 2304
<sy******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I need a database to record students names etc and also to record their
levels at six times during the year for a range of subjects. Obviously
there can only be one entry per student subject per time period.

I have some of the design figured but am a bit stuck. Can someone point
a relative newbie in the right direction.

Table 1
STudents

StudentId (Primary Key)
FirstName
SecondName
Dob
etc just fixed reference data

Table 2
Subjects

SubjectId (Primary Key)
Subject (Maths, English, Science etc)

Table 3 (The link one I am having trouble with)
StudentId
SubjectId
Year ( 7 to 11)
Timeperiod (1 to 6)
Assessment (Levels 1 to 8)

I am not sure if this design is correct what should be keys in table 3
or exactly how to set up the relationships.

Thanks for any help.

Mike

Although you have provided the basic idea for your 3-table structure, you
could flesh it out with a few more details. For example, data types: are
you using autonumber fields for the Student.StudentId and Subject.SubjectId?
If so, the related fields in your link table should be of type long integer.
I would set them both to be required have no default value and indexed
allowing duplicates.
Select Tools>Relationships and add all three tables. Drag Student.StudentId
onto Link.StudentId and choose to enforce referential integrity (Cascade
Update doesn't make sense if the field is autonumber so won't make any
difference if you select it and I wouldn't apply Cascade Delete as this
would allow you to delete an entire subject with all marks for all students
just by pressing one button) Similarly link Subject.SubjectId to
Link.SubjectId.
Here are some additional ideas:
Don't give your field names reserved words such as Name, Date or Year.
I would add a primary key to the junction table. Just a simple autonumber
to have an easily identifiable primary key. You also need to define an
additional index which prevents undesirable duplicates, which I guess in
your case is the first four fields.
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
8
by: Christan | last post by:
I am currently taking a db course and my class is paired us into groups of 4s and our instructor had us download a template from the microsoft Access site for education to create and modify a...
0
by: Microbof | last post by:
I am trying to produce a database to keep assessment levels for a group of students. So in the first database I made a table with a unique pupil number and 7 assessment boxes. I then made...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
9
by: Tris | last post by:
Hi People I need help!!! Have got a excel file that i have put into an access file so that i can create a mailing carrier sheet without re typing everybodys details in. The excel file has...
2
by: -D- | last post by:
I'm taking my first stab at using xml, so please bear with my novice questions and understanding of xml. I'm trying to create an xml file that holds all my website navigation. If I understand...
3
by: cpptutor2000 | last post by:
Could some PHP guru please help me? I am have a drop down list, whose options are read in dynamically from a table in a MySQL database. one of the items being read in is an URL. I am unable to...
8
by: 08butoryr | last post by:
Hey guys I could really use your help with some very basic java programming. I know you programming fundis out there will find this child's play but I'm struggling with it a bit because I'm...
1
by: valmae | last post by:
Please help anyone! I am getting this error after the submit button is clicked to this form which was designed in Dreamweaver in ASP. Microsoft VBScript compilation error '800a0401' Expected...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.