2 1.1 Design a relational database system using appropriate design tools and techniques, containing at least four interrelated tables, with clear statements of user and system requiremen
Trang 1STUDENT : PHAN LAM QUOC VIET CLASS : IT16101
STUDENTID : BDAF200035 SUPERVISOR : NGUYEN HOANG ANH VỤ
Da Nang, October 2021
Trang 2
submission) Student name Phan Lam Quoc Viet | Student ID BDAF200035
Trang 4‘BTEC 3
TABLE OF CONTENT
INSTRUCTOR/ SUPERVISOR/ ASSESSOR 211.11 i
122.1 iv
L5 195300210554 ix
K19 17/1127.) 9c 1n cố ố xi
Ik39 o2 xii
(eo p0 SG nnnHH 1
0n 131315 819250C)09 V1 ố ốốốố 2
1.1 Design a relational database system using appropriate design tools and techniques, containing at least four interrelated tables, with clear statements of user and system requirements 1 2 1.1.1 Scenario of the chosen syS†@Im + Sc t2 1H ng TH HH Hà HH cà 2 1.1.2 System Requirement Specification (SRS)} - c.cct HH HH2 xxx 3 In Na si n0 4
IS 20 i7 5
II MÀ 2n an 6 1.2 Produce a comprehensive design for a fully functional system which includes interface and output designs, data validations and data normalisation (M1) .ccccssecssscsessessssesseecsessesessesseessesaeens 7
1.2.1 User Interfaces Of YOUr SYSTOINL cccccccscseesescsessesessessesesecseseeseseesssecseseesusacseeessesaeans 7 1.2.2 Data Validation (included in physical design) ccccsscseessescessecsecesssesseeeseeaes 8
1.2.3 NormalizatÏOn các HH HH HH HH HH HH HT HH TH HH Hy 11
(DAL) seesssseessessessessessessesseseeseesesseeseeseeseesecessescessessesseeseesesseesesseseeessesessesseeseeeesssesseesnsets uunsnnnsnnnsssssssssisstsssssssssssssste 13 CRITICAL EVALUATION cccsssssssssssssssssssssssssssessssssssssssseeeseessnssssssssssssssssssssssssssssssssssssssssssssssssssssssssssiestsste 15 CONCLUSION oieseeseeseessssesssssssssssessssseseeseesessessesseeseeseesenseeseeseesenseessnsssssossnsssssnssnsvestensuesensunsenseeseesnesnsenteeeeees 16 REFERENCES_ 02222222 n2 0220020011111 rerrrrrrrerrre 17
Trang 5‘BTEC 3
LIST OF TABLES AND FIGURES
Iiz111-300innafs nnnnnnnn - 2
Figure 1.1-2: Student Management SYSt@M ccccccccscccccsecsecsenscesecseceeecsecsesscessesseseessasecsessseseesseseesaaees 3 Figure 1.1-3: Entity Relationship DiQQrin.u ccccccccccsccccesscseesesssececessceessessceeeessceceaceessesssesecsssecsesteessenes 4 Figure 1.4-4: Physical COSIQWI c.ccccccccccsecseceesesseesessceseesseseesecsessessceseesseseeseasesseecsessaeeeessssessessecseiaseeess 7 Figure 1.2-1: Login - Student Management SVSfGIT S20 11112111 10111 41k 111g vn gi kg ky 7 Figure 1.2-2: Home - Student Management SYStein cc.cccccsccccesesscesescesecseceesscseesessseseetseseensasecssasseees 7 Figure 1.2-3: List - Student Management SYSt@m .ccccccccecsecesessceeensacecsessececessceeeseasecsessseeeessetsaeeeees 8 [1211125 5080/-1-0.//283112//f0/23/1/1-/-ix10880 n0 nh e 14
Table m1 j.ammna Ắ 5
Table m2 nn.-Ắ.Ắ 5
Table ` nh 5
Iý/2/-07 016612 5
72-11 nh 5
r/2 mm - 6
72 m2 n - 6
r7) ca nh 6
72/8118 ,0/.ns an nnhn 8
r./2)-246.,.19 0nnnn - 8
Ir./2018Ẻ2- un9 nh nh 9
I2) À1: A2 19 na 9
Table E-1851i/ 0s n9 na 9
r./2- 2230.219 Ắ 10
r2 0.2.9 nh 10
Table 0182-29 109 0n .-Ắ 10
Table 1.2-9: Unnormalized ExQmple ccccccccsccccccssscccescccesesceeecseecesceeesessceseesseecesseecsessseseeseeeeseessnees 11 Table 1.2-10: First normal form (INF) EXQmple.ii ccccccccccccccecsccceensececsesscessesseasecsessscseessesessesecsensaess 12 Table 1.2-11: Second normdl ƒorm (2NF) ExqrmpÍ - - L1 1111101111111 1111821111 g0 tk kg tre, 12 Iý/2)/-0 191220 2a s03 (58/2/02) 0852, 00nn886nh 13
Iý/2)/-011 181/1 :0 24:02, 1) 012/0 0088688 13 Table 1.2-14: Third normdl ƒorm (3NF) ExdmjpDÍ€ - <5 1 1121111153131 11183 111182111142 1111121 1tr, 14
Trang 6LIST OF THE ACRONYM
First Normal Form Second Normal Form Third Normal Form
Business Administration Boyce Codd Normal Form Business Strategy Business and Technology Education Council Content Management System
Database
Entity Relationship Diagram Financing Promoting Technology Graphic Design
Identity Information Technology Marketing
Pearson Education
Programming Random Access Memory System Requirement Specification Typography
Web Development
Trang 7‘BTEC 3
INTRODUCTION
First of all, | would like to thank my mentor Nguyen Hoang Anh Vu for his constant support
in my studies and research, for his patience, motivation, enthusiasm and rich knowledge Without your wonderful help, | would not have been able to achieve this
In addition to my mentor, | would like to thank my friends who have helped me improve my knowledge of my subject And besides, | would like to thank the school for creating all conditions for me to have adequate facilities to help me complete my work
Last but not least, | would like to thank my family: my parents Phan Dinh Quy and Lam Thi Tam They are always be-hind to care and help me have more motivation to complete the work well! Network plays a very important role in life
From there, we will test the results that we have done Finally, we will operate the system and maintain it It is also a process to build a complete Database Design & Development system Let's find out in this assignment!
1.Use an appropriate design tool to design a relational database system for a substantial problem (LO1)
1.1 Design a relational database system using appropriate design tools and techniques, containing at least four interrelated tables, with clear statements of user and system requirements (P1)
1.2 Produce a comprehensive design for a fully functional system which includes interface and output designs, data validations and data normalisation (M1)
1.3 Assess the effectiveness of the design in relation to user and system
requirements (D1)
Trang 8"BTEC ‘BTEC
CHAPTER 1: DESIGN DATABASE
1 Use an appropriate design tool to design a relational database system for a substantial problem (LO1)
1.1 Design a relational database system using appropriate design tools and techniques, containing
at least four interrelated tables, with clear statements of user and system requirements (P1) 1.1.1 Scenario of the chosen system
- It chose to build various academic systems that would make the institution simpler to administer, such as: the online library, the student graduation system, the attendance system, the CMS system
- You are responsible for selecting one of the systems for developing the FPT university database Your responsibilities are:
=" Work with FPT to learn about existing system needs
=" Analysis needs and make unambiguous user and system requirements statements
" Conceive a relational database system utilizing design tools and processes
" Develop a completely working relation database system based on the system design that exists
" Test the system against needs of users and systems
Performed Student: Phan Lam Quoc Viet
Trang 9“BTEC 3
m1 " 7 ‘BT EC
= Produce user and technical documents
- Currently, FPT University has many discrete and inconsistent management systems such as: Online Library system, Student Grading System, Attendance System, CMS System, Scheduling System, Enrolment Systems, and so on
- Thus, it is time for us to create a unified system to effectively capture and manage students
in teaching and school management
- Therefore, we have proposed to build a “Student Management System” - a large system with a large source of data so that FPT University can thoroughly solve these difficult problems 1.1.2 System Requirement Specification (SRS)
- The creation of the FPT relationship database and division into clear and accurate tabulations can solve all of the difficulties listed above:
+ Major: Each Major has a major identity,
the main name and the foundation year et a E
+ Courses: every course has a course Reducing the amount
+ Student: Every student has a student
identity andbelongs to a certain class identity
(identified by ClassID) i
+ Program: Each program has a managing
Ai communication
code and aname for the program s See ea
online fee payment
subject : Each subject has a management code
and belongs to a certain discipline (identified by
MajorID) Figure 1.1-2: Student Management System + Subject: Each subject has a management code and belongs to a certain discipline (identified by MajorID)
+Result: Each result of the exam records a student who took the test for a specific topic during a certain test period (The student can take more than once a specific topic)
+ Lecturer: Each line in this table indicates a subject taught in a particular discipline within a certain program In this program, that subject is specified with a specific number of theoretical and practical periods and equivalent to how many credits (The number of credits includes both theoretical and practical credits)
+ Class: A class that has a class code to manage, belongs to a certain industry and is open to
a certain course, in a certain program The ordinal numbers are numbered in ascending order for classes of the same course, major, and program
- Functional requirements:
Performed Student: Phan Lam Quoc Viet
Trang 10‘BTEC r
m1 " 7 ‘BT EC
The system has the main functions: storing information about students, subjects, study programs, classes, lectures, Along with that is the data retrieval at the request of users
This system has high security to avoid data loss,
Correct transaction actions are stored, and the system records the modifications and cancellations
Nice and easy to use external interface
The system stores data history for users to easily check and review
- Non-functional requirements:
There are no problems and the system operates stably 24/7 and high performance For instance, re-response time is within 1-2 seconds as well as throughput The system also have a scalability
It also contains many data and is quite reliable
Stable resilience and maintenance and excellent interoperability
- System requirements:
The system runs on Windows 7, Windows 8, Windows 10, Windows 11 (Preferred Windows 10)
Processor: Processor clocked at 1 gigahertz (GHz) or higher, or SoC
RAM: 1 gigabyte (GB) for 32 bits or 2 GB for 64 bit
Hard disk space: 16 GB for 32-bit OS or 20 GB for 64-bit OS
1.1.3 Logical design (ERD)
Class | _Major [ {Study Program
Ca) Cait) Games > =D VS
Figure 1.1-3: Entity Relationship Diagram
Performed Student: Phan Lam Quoc Viet
Trang 11‘BTEC $
1.1.4 Explanation
“+ For the system, Reasons ERD is suitable because:
- The relations of entities recorded in the database is shown in an Entity Relationship Diagram (ERD) An entity is an object, a data component in this context A collection of related entities is a set of entities They may have characteristics that identify their characteristics
- The ER diagram shows the logical structure of databases by defining the entities, their characteristics and displaying their relations
- Because the system requires a relationship database to be designed The tables are tightly connected according to the ERD graph The system may simply and conveniently provide statistics
on student data, topics Easily and scientifically import and export data, thus ERD is a good choice
“+ Explain about ERD:
- Firstly, we need to identify the primary and secondary keys of each table while designing
an ERD diagram:
" Asmooth underline is the primary key
" Foreign keys are not seamless, specified with underscores
Trang 12‘BTEC 3
varchar(10) varchar(10) Int float
varchar(10) varchar(10) varchar(10)
Int Int Int Int
+ Conversion of the logical design in table definitions: pre-deployment designs, table definitions, standardization, primary and external key relations, fundamental indexing
+ Physical data database design after deployment, frequently carried out by a manager of a database
Performed Student: Phan Lam Quoc Viet
Trang 13Figure 1.2-1: Login - Student Management System
Performed Student: Phan Lam Quoc Viet
Trang 14Figure 1.2-2: Home - Student Management System
"™ STUDENT MANAGEMENT SYSTEM x
& btecfpt@fpt.ec
en
Learning Information Activity Information Regulation
7 DI ENGES WITH MINI GAMI NOTICE SUMMER SUMMER 2019 SUMMER
‘CHALLENGES FOR KNIGHT" STUDENTS COURSE 1/2018!
STARTING 71DA ALLENGES Vi NOTICE SUMMER SUMMER 2019 :
STUDENTS Ci ANNOUNCEMENT OF SCHEDU!
Trang 15
“BTEC
asionce wits aI extn
- The data details are as follows:
‘BTEC
Table 1.2-2: Course Data
BDAF200035 Phan Lam Quéc Viét 2002 Kinh 1716101 BDAF200036 Đoàn Xuân Duyên 2002 Kinh [T16101
BDAF200037 Nguyễn Trần Quốc Khánh 1995 Kinh IT16101
BDAF200038 Phạm Xuân Phong 2002 Kinh [T16101 BDAF200039 Nguyễn Phan Gia Bảo 2000 Kinh IT16101 BDAF200040 Nguyễn Thị Tuyết Nhung 2002 Kinh IT16101 BDAF200041 Lê Thị Thu Thảo 2002 Kinh BA16101 BDAF200042 Lê Minh Hoàng 2002 Kinh BA16101 BDAF200043 Ngô Trần Tuấn Duy 2002 Kinh GD16101 BDAF200044 Phan Huy Thành 2002 Kinh GD16101
Table 1.2-3: Student Data
Trang 16
BDAF200038 Pro 1 7
BDAF200039 Web 1 5
BDAF200040 Pro 1 8
BDAF200040 Web 1 10 BDAF200040 DB 1 7
Trang 17
1T16101 K4 IT PE 1 GD16101 K4 GD PE 2 BA16101 K4 BA PE 3
Table 1.2-8: Class Data 1.2.3 Normalization:
- The process of arranging data in a database is normalization This comprises the creation
of tables and the establishment of links between tables according to rules to both secure the data and flexible the database by removing repetition and inconsistency
“+ There are many different normal forms:
- First normal form (1NF):
=" Remove repetitive categories from tables
=" For every group of related data, create a distinct table
= Identify with a primary key each collection of associated data
"Do not save comparable data by using several fields in a single table
- Second normal form (2NF):
" Create distinct tables for sets of numerous record values
=" Connect these tables to an alien key
" Records should not depend on anything but the main key of a table (a compound key, if necessary)
11 Performed Student: Phan Lam Quoc Viet