Beruflich Dokumente
Kultur Dokumente
[TP023828]
Jai Girdhar
[TP020440]
[TP027884]
Lecturer Name
Intake
UC2F1201IT/ISS
7 April 2012
Hand In Date
21 May 2012
Workload Matrix
NAME
PROGRAMMING
DESIGN
DOCUMENTATION
Behzad
Shoarian
Satari
15
33
40
Arvin Raj
Singh Gill
15
33
40
Jai Girdhar
70
33
20
Contents
Introduction.................................................................................................................... 3
Entity Relationship Modeling (Crow's Foot Notation)................................................................5
Entity Relationship Diagram (ERD)................................................................................... 5
ERD Explanation.......................................................................................................... 6
Normalization............................................................................................................. 7
First Normal Form (1NF).......................................................................................... 7
Second Normal Form (2NF)..................................................................................... 8
Third Normal Form (3NF)....................................................................................... 10
Fourth Normal Form (4NF)..................................................................................... 11
Business Rules.............................................................................................................. 12
Attribute Level........................................................................................................... 12
Entity level rules........................................................................................................ 12
Inter-Entity Level Rules............................................................................................... 12
Database Schema........................................................................................................... 13
Data dictionary.............................................................................................................. 14
SQL statement.............................................................................................................. 19
DDL Statement.......................................................................................................... 19
DML Statement.......................................................................................................... 29
System screen shots and Explanation.................................................................................. 32
References................................................................................................................... 36
Introduction
The database is designed based on an Entity Relationship Diagram which defines the whole
structure of the system. From the Entity Relationship Diagram, a context containing Business
Rules is produced. The Business Rules ensures the integrity and correctness of the data. Once the
data is ensured to be precise, the tables containing these data would be normalized. Once
everything is in place, a Data Dictionary would be designed and a database would be designed
from the required tables.
Once the database has been created, it would be linked to the frontend which is developed using
PHP. The frontend is an interface made available to users with proper credentials. Once logged
in, depending on the permission and user level, one could retrieve, store, update or delete data
from the database.
ERD Explanation
MANY students can enroll and Belongs to ONE intake
ONE Intake has MANY Courses
ONE Course contains MANY Modules
ONE Intake is owned by ONE Department
ONE Department contains MANY Lecturers
ONE Lecturer teaches MANY Modules
ONE Lecturer can create MANY Consultation schedules
ONE Student reserves ONE Consultation Schedule
ONE Admin publishes MANY TimeTable
ONE Admin publishes MANY FYPSchedule
ONE Lecturer View ONE TimeTable
ONE Lecturer View ONE FYPSchedule
ONE Student View MANY TimeTable
ONE Student View ONE FYPSchedule
Normalization
UnNormalized Form (UNF)
Weekly Time Table
Ttdate,intake_alias,InstructorFirstName,InstructorLastName,InstructorDOB,InstructorGender,Instructor
Address,InstructorYearEnrolled,IntakeYear,IntakeMonth,InstructorUsername,InstructorPassword,Course
Name,CourseCredit,DepartmentName,ModuleName,SlotFrom,SlotTo,DepratmentName,RoomName,Roo
mCapacity,VenueName,CourseName,DepartmentName,CourseCredits,ModuleName
Intake Table
IntakeAlias,IntakeYear,IntakeMonth,CourseName,CourseCredit,IntakeCa
pacity,DepartmentName.
Instructor Table
InstructorID,InstructorFirstName,InstructorLastName,InstructoAddress,I
nstructorYearEnrolled,
InstructorUsername,InstructorPassword,DepartmentName.
Course Table
CourseID,CourseName,DepartmentID
Room Table
RoomName,VenueID
Venue Table
VenueName,VenueID
Department Table
DepartmentID,DepartmentName
Module Table
ModuleName,CourseName,IntakeAlias,IntakeYear,IntakeMonth,IntakeCa
pacity
Instructor Table
InstructorID,InstructorFirstName,InstructorLastName,InstructoAddress,I
nstructorYearEnrolled,
InstructorUsername,InstructorPassword,DepartmentID.
Department Table
DepartmentID,DepartmentName
Intake Table
IntakeAlias,IntakeYear,IntakeMonth,IntakeCapacity,CourseID
Course Table
CourseID,CourseName,DepartmentName
Module Table
ModuleID,ModuleName,CourseID
10
Course Table
CourseID,CourseName,DepartmentID
Department Table
DepartmentID,DepartmentName
11
Business Rules
Attribute Level
Intakes are defined by the period of time. For example, if an intake is held in March, then
students who registered in March would be labeled as students of March intake.
Time for each Consultation_Schedule must be greater than 0, and lasts for 30 minutes.
Lecturers are allowed to use the "Feedback" option to request for changes in the
Timetable and FYPSchedule set by the Admin.
12
Database Schema
Data dictionary
Database and Web Database System | CT014-3.5-2
13
Table Name
Instructor
Table Name
Student
Table Name
Admin
Table Name
Column Name
Inst_id
Inst_first_name
Inst_last_name
Inst_gender
Inst_dob
Inst_address
Inst_year_enrolled
intake_id
Inst_username
Inst_password
Enabled
Data Type
Integer(11)
Vachar(45)
Vachar(45)
Varchar(45)
Vachar(45)
Vachar(45)
Year(4)
Integer(11)
Vachar(45)
Vachar(45)
Intiger(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Key
PK
Column Name
Stud_id
Stud_first_name
Stud_last_name
Stud_gender
Stud_dob
Stud_address
Intake_id
Stud_user_name
Stud_password
Enabled
Column Name
Admin_id
Admin_full_name
Admin_contact_no
Admin_address
Admin_username
Admin_password
Enabled
Data Type
Integer(11)
Vachar(45)
Vachar(45)
Vachar(45)
Vachar(45)
Vachar(45)
Integer(11)
Vachar(45)
Vachar(45)
Integer(11)
Data Type
Integer(11)
Varchar(45)
Varchar(45)
Varchar(45)
Varchar(45)
Varchar(45)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Key
PK
Column Name
Cb_id
Stud_id
Data Type
Integer(11)
Integer(11)
Constraint
Not Null
Not Null
Key
PK
FK
FK
Key
PK
14
Consultation
Table Name
Consultation
schedule slot
Table Name
Course
Table Name
Department
Table Name
Remark
cs_id
enabled
Vahchar(2222)
Integer(11)
Integer(11)
Allow Null
Not Null
Not Null
Column Name
Cs_id
Cs_date
Data Type
Integer(11)
Varchar(45)
Constraint
Not Null
Not Null
Cs_time
Room_id
Inst_id
Cs_date_validation
Enabled
Varchar(45)
Varchar(45)
Integer(11)
Varchar(45)
Integer(11)
Not Null
Not Null
Not Null
Not Null
Not Null
FK
Key
PK
FK
FK
Column Name
Course_id
Course_name
Course_credits
Dept_id
Enabled
Data Type
Integer(11)
Varchar(45)
archar(45)
Integer(11)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Key
PK
Column Name
Dept_id
Dept_name
Enabled
Data Type
Integer(11)
Varchar(45)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Key
PK
Column Name
Intake_id
Data Type
Integer(11)
Constraint
Not Null
Key
PK
FK
15
Intake
Table Name
Login
Table Name
Module
Table Name
Presentation
schedule
Intake_year
Intake_month
Intake_capacity
Cousrce_id
Intake_alias
Enabled
Varchar(45)
Varchar(45)
Varchar(45)
Integer(11)
Varchar(45)
Integer(11)
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Column Name
Login_id
Login_username
Login_password
Login_type
Login_user_id
Enabled
Data Type
Integer(11)
Varchar(45)
Varchar(45)
Varchar(45)
Integer(11)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Key
PK
Column Name
Module_id
Module_name
Course_id
Enabled
Data Type
Integer(11)
Varchar(45)
Integer(11)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Key
PK
Column Name
Ps_id
Ps_date
Inst_id
Stud_id
Ps_type
Ps_time_from
Ps_time_to
Room_id
Enabled
Data Type
Integer(11)
Varchar(45)
Integer(11)
Integer(11)
Varchar(45)
Varchar(45)
Varchar(45)
Integer(11)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Key
PK
FK
FK
FK
FK
FK
FK
16
Table Name
Room
Table Name
Venue
Table Name
Weekly
timetables
Table Name
Weekly
Timetable slot
Column Name
Room_id
Room_name
Venue_id
Room_capacity
Enabled
Data Type
Integer(11)
Varchar(45)
Integer(11)
Varchar(45)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Key
PK
Column Name
Venue_id
Venue_name
Enabled
Data Type
Integer(11)
Varchar(45)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Key
Column Name
tt_id
tt_date
Intake_id
Enabled
Column Name
Slot_id
Inst_id
Module_id
Slot_time_from
Slot_time_to
tt_id
Enabled
Data Type
Integer(11)
Varchar(45)
Integer(11)
Integer(11)
Data Type
Integer(11)
Integer(11)
Integer(11)
Varchar(45)
Varchar(45)
Integer(11)
Integer(11)
Constraint
Not Null
Not Null
Not Null
Not Null
Constraint
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
FK
PK
Key
PK
FK
Key
PK
FK
FK
FK
SQL statement
DDL Statement
CREATE DATABASE `dwds` /*!40100 DEFAULT CHARACTER SET latin1 */$$
17
18
19
20
21
22
23
24
25
26
DML Statement
There are some of the DML statement exists in lotus university project such as:
27
28
29
Login Page user need enter username and password for login
30
31
32
33
References
W3school.com. (2010), HTML tutorial [Online] Available at :
http://www.w3schools.com/html/default.asp [Accessed 3 May 2012].
W3school.com.(2010) PHP Tutorial [Online] Available at:
http://www.w3schools.com/php/default.asp [accessed 4 may 2012].
Jackzheng.net (2010) CIS 3730 Designing and Managing Data. [online] Available at:
http://jackzheng.net/teaching/cis3730/ [Accessed: 18 May 2012].
www2.cs.uregina.ca (2009) Crow's Foot Notation. [online] Available at:
http://www2.cs.uregina.ca/~bernatja/crowsfoot.html [Accessed: 18 May 2012].
W3school.com. (2011). JavaScript Tutorial [Online] Available at:
http://www.w3schools.com/js/default.asp [Accessed 18 may 2012].
34
35