Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Assignment 1 Pro-Forma: UHI Student Records System

NORMALISATION

UNF 1NF 2NF 3NF Entity Name


StudentID StudentID (PK) StudentID (PK) StudentID (PK) Student Table
StudentForename StudentForename StudentForename StudentForename
StudentSurname StudentSurname StudentSurname StudentSurname
Gender Gender Gender Gender
DateOfBirth DateOfBirth DateOfBirth DateOfBirth
SubjectID
SubjectTitle StudentID (PK/FK) StudentID (PK/FK) StudentID (PK/FK) Enrolment
StaffID SubjectID (PK) SubjectID (PK) SubjectID (PK)
StaffForename SubjectTitle Result Result
StaffSurname StaffID
Post StaffForename SubjectID (PK) SubjectID (PK) Subject Table
Result StaffSurname SubjectTitle StaffID (FK)
Post StaffID SubjectTitle
Result StaffForename Staff Table
StaffSurname StaffID(PK)
Post

1
Assignment 1 Pro-Forma: UHI Student Records System
StaffForename
StaffSurname
Post

Use PK to signify a primary key and FK to signify a foreign key. If an attribute is both, show as PK/FK

2
Assignment 1 Pro-Forma: UHI Student Records System
ENTITY DESCRIPTION – DATA DICTIONARY

ENTITY NAME Student Table


DESCRIPTION
Student table contains information about the student with their ID being the primary key. This links to Subject tables.

KEY ATTRIBUTE TYPE & SIZE RANGE COMMENT


NAME
PK StudentID INT(5) NN StudentID is INT(5) to allow for the student ID to be
made, Not Null as it is required information.
StudentForename Varchar(20) NN
StudentForename is Not Null as their name is required
StudentSurname Varchar(20) NN
information.
Gender Varchar(10)
Surname is Not null as it is also required.
DateOfBirth Date NN
Gender is Varchar(10).This field is optional.
DateOfBirth is just a date and is a necessary field.

Type of data field (char – text, integer or decimal for numbers, date for dates and time for time values)

3
Assignment 1 Pro-Forma: UHI Student Records System

ENTITY NAME Subject Table


DESCRIPTION
The Subject table displays information regarding the subjects ID’s and titles.

KEY ATTRIBUTE TYPE & SIZE RANGE COMMENT


NAME
PK SubjectID Varchar(10) NN SubjectID is Varchar(10) as it contains both numbers
and letters. Not null as it is a required field.
FK StaffID INT(5) NN
StaffID is included as a foreign key to link both the staff
SubjectTitle Varchar(30) NN
table and subject table together.
SubjectTitle is Varchar(30) and is NN as it is required.

Type of data field (char – text, integer or decimal for numbers, date for dates and time for time values)

4
Assignment 1 Pro-Forma: UHI Student Records System

ENTITY NAME Staff Table


DESCRIPTION
The Staff Table contains all the information regarding staff information such as StaffID as the primary key.

KEY ATTRIBUTE TYPE & SIZE RANGE COMMENT


NAME
PK StaffID INT(5) NN StaffID is the primary key for the staff member table.
This field is required.
StaffForename Varchar(20)NN
StaffForename and StaffSurname are both Varchar(20)
StaffSurname Varchar(20) NN
and required fields.
Post Varchar(20) NN
Post is varchar(20) and not null as it is important to know
which post each of the lecturer holds..

Type of data field (char – text, integer or decimal for numbers, date for dates and time for time values)

5
Assignment 1 Pro-Forma: UHI Student Records System

ENTITY NAME Enrolment


DESCRIPTION
This table represents the link between the student information and the subjects they partake.

KEY ATTRIBUTE TYPE & SIZE RANGE COMMENT


NAME
PK StudentID INT(5) NN SubjectID is the primary key linking StudentID and
SubjectID with eachother so it is easy to find which
FK SubjectID Varchar(10) NN
student does which subject.
Result INT(3) NN 1-100
The results are included in this and have a range of 1-
100 as it is a percentage value.

Type of data field (char – text, integer or decimal for numbers, date for dates and time for time values)

6
Assignment 1 Pro-Forma: UHI Student Records System
ERD DIAGRAM / DATA MODEL

Student

Staff Table
Enrolment

Subject Table

You might also like