Documente Academic
Documente Profesional
Documente Cultură
administration system
Patrick Ward
D11124386
Instructor: Mr. Patrick Mathews
Module: Advanced Database Systems
1st March 2012
1. Assignment Overview!
1.1.User Types!
1.2.User Functionality!
2. Database Tables!
2.1.User Tables!
2.2.Main Tables!
1. Scheduling Tables:!
10
11
12
1. Assignment Overview
Design a database system that will allow the efficient management of the university.
Page 3
Page 4
2. Database Tables
The tables below have been designed to meet the requirements of 3rd Normal Form that states
that all non-key columns are independent of each other in addition to meeting 1st and 2nd
Normal Forms.
Staff_ID
SystemLogin_id
fist_name
last_name
addressLine1
addressLine2
addressLine2
addressLine2
email
mobilePhone
officePhone
job_typeId
id
title
Staff
int (11)
int (10)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
int (14)
int (14)
int (1)
Primary Key
Foreign Key
Combined Key
Primary Key
id
SystemLogin_id
fist_name
last_name
addressLine1
addressLine2
addressLine2
addressLine2
email
mobilePhone
officePhone
Student
int (11)
int (10)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
varchar (55)
int (14)
int (14)
Primary Key
Foreign Key
Foreign Key
Job_Type
int (1)
Primary Key
varchar (55)
id
username
password
Page 5
SystemLogin
int (10)
Primary Key
varchar (25)
varchar (25)
Module
varchar (5)
varchar (55)
binary (1)
int (10)
Primary Key
id
startDate
endDate
Foreign Key
roomName
capacity
Room
varchar (6)
int (4)
Primary Key
Class (event)
RoomName
int(10)
Primary Key
TimeSlot
int(2)
Primary Key
DayID
int(1)
Primary Key
ModuleCode
varchar (5)
Primary Key
Combined key will prevent scheduling conflicts
Page 6
Semester
int (6)
date
date
Primary Key
Registration
int(6)
int(11)
timestamp
LecturerToModule
staff_id
int(10)
ModuleCode varchar(5)
staffJob_Type int (1)
Restricted to 3 per lecturer using a trigger
StudentToModule
int(10)
int(6)
StudentID
SemesterID
ModuleCode
grade
varchar (5)
Restricted to 4 per student using a trigger
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12