Docsity

Relational Database System Design for a University Management System - Prof. LOng, Thesis of Information Systems

Partial preview of the text

Download Relational Database System Design for a University Management System - Prof. LOng and more Thesis Information Systems in PDF only on Docsity!

BTEC FPT INTERNATIONAL COLLEGE

INFORMATION TECHNOLOGY

ASSIGNMENT 1

UNIT: DATABASE DESIGN & DEVELOPMENT

STUDENT : PHAN LAM QUOC VIET

CLASS : IT

STUDENT ID : BDAF

SUPERVISOR : NGUYEN HOANG ANH VU

Da Nang, October 2021

ASSIGNMENT 1 FRONTSHEET Qualification BTEC Level 4 HND Diploma in Computing Unit number and title Unit: Database Design & Development Submission date 30 /10/ Date received (1st submission)

Re-submission date Date received (2nd submission) Student name Phan Lam Quoc Viet Student ID BDAF Class IT16102 Assessor name Nguyen Hoang Anh Vu Student declaration: I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature: Quoc Viet Grading grid: P1 M1 D

TABLE OF CONTENT

INSTRUCTOR/ SUPERVISOR/ ASSESSOR ………………………………………………………………………………………….i REVIEWERS ……………………………………………………………………………………………………………………….…………..iv TABLE OF CONTENT ………………………………………………………………………………………………………………………ix LIST OF TABLES AND FIGURES ……………………………………………………………………………………………………….xi LIST OF ACRONYM ………………………………………………………………………………………………………………………..xii INTRODUCTION …………………………………………………………………………………………………………………………….. 1 CHAPTER 1: DESIGN DATABASE……………………………………………………………………………………………………… 2

  1. Use an appropriate design tool to design a relational database system for a substantial problem (LO1) ………………………………………………………………………………………………................................................. 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. (P1)……………………………………………………………………………………………………………………………………………….. 2 1.1.1 Scenario of the chosen system …………………………………………………………………….. 2 1.1.2 System Requirement Specification (SRS) ……………………………..………………………. 3 1.1.3 Logical design (ERD) …………………………………………………………...………………………… 4 1.1.4 Explanation……………………………………………………………………………......……………….. 5 1.1.5 Physical design……………………………………………………………………….…………………….. 6 1.2 Produce a comprehensive design for a fully functional system which includes interface and output designs, data validations and data normalisation. (M1) ……………………………………………………… 7 1.2.1 User Interfaces of your system……………………………………………………………………… 7 1.2.2 Data Validation (included in physical design)…………………………………....…………. 8 1.2.3 Normalization………………………………………………………………………………...………….. 11 1.3 Assess the effectiveness of the design in relation to user and system requirements. (D1)……...……………………………………………………………………………………………………………………………………… 13 CRITICAL EVALUATION ………………………………………………………………………………………………………………… 15 CONCLUSION ………………………………………………………………………..…………………………………………………….. 16 REFERENCES ……………………………………………………………………………………………………………………………… 17

LIST OF TABLES AND FIGURES

  • Figure 1.1- 1 : FPT school.......................................................................................................................
    • Figure 1. 1 - 2 : Student Management System........................................................................................
  • Figure 1. 1 - 3 : Entity Relationship Diagram........................................................................................... - Figure 1. 4 - 4 : Physical design.............................................................................................................. - Figure 1. 2 - 1 : Login - Student Management System - Figure 1. 2 - 2 : Home - Student Management System...........................................................................
  • Figure 1. 2 - 3 : List - Student Management System
  • Figure 1.3- 1 : User and system requirements.....................................................................................
    • Table 1.1-1: Major...............................................................................................................................
    • Table 1. 1 - 2: Course..............................................................................................................................
      • Table 1. 1 - 3: Student............................................................................................................................
    • Table 1. 1 - 4: Study Program.................................................................................................................
      • Table 1. 1 - 5: Student............................................................................................................................
    • Table 1. 1 - 6: Result...............................................................................................................................
  • Table 1.1-7: Lecturer............................................................................................................................
  • Table 1. 1 - 8: Class................................................................................................................................. - Table 1. 2 - 1: Major Data......................................................................................................................
    • Table 1. 2 - 2: Course Data.....................................................................................................................
  • Table 1. 2 - 3: Student Data.................................................................................................................... - Table 1. 2 - 4: Study Program Data........................................................................................................ - Table 1. 2 - 5: Study Program Data........................................................................................................ - Table 1. 2 - 6: Result Data.................................................................................................................... - Table 1. 2 - 7: Result Data....................................................................................................................
    • Table 1. 2 - 8: Class Data......................................................................................................................
  • Table 1. 2 - 9: Unnormalized Example.................................................................................................. - Table 1. 2 - 10: First normal form (1NF) Example................................................................................
    • Table 1.2-11: Second normal form (2NF) Example............................................................................
    • Table 1. 2 - 12: Second normal form (2NF) Example............................................................................
      • Table 1. 2 - 13 : Third normal form (3NF) Example...............................................................................
      • Table 1. 2 - 14: Third normal form (3NF) Example...............................................................................

INTRODUCTION

First of all, I 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, I would not have been able to achieve this. In addition to my mentor, I would like to thank my friends who have helped me improve my knowledge of my subject. And besides, I 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, I 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)

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 Figure 1. 1 - 1 : FPT school

  • For a big IT consulting firm, you are a Database Developer. The FPT University has approached the firm and is expanding due to the increase in the number of students. FPT has difficulty interacting with university management at the moment.
  • 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.

▪ 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) Figure 1. 1 - 3 : Entity Relationship Diagram

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: ▪ A smooth underline is the primary key. ▪ Foreign keys are not seamless, specified with underscores. MajorID MajorName FoundedYear varchar(10) nvarchar(100) int Table 1. 1 - 1 : Major CourseID BeginYear FinalYear varchar(10) int int Table 1. 1 - 2 : Course StudentID StudentName YearBirth Nation ClassID varchar(10) nvarchar(100) int nvarchar(20) varchar(10) Table 1. 1 - 3 : Student StudyProgramID StudyProgramName varchar(10) nvarchar(100) Table 1. 1 - 4 : Study Program SubjectsID SubjectsName CourseID varchar(10) nvarchar(100) varchar(10) Table 1. 1 - 5 : Student

Figure 1. 4 - 4 : Physical design 1.2 Produce a comprehensive design for a fully functional system which includes interface and output designs, data validations and data normalisation. (M1) 1.2.1 User Interfaces of your system Figure 1. 2 - 1 : Login - Student Management System

Figure 1. 2 - 2 : Home - Student Management System...........................................................................

Figure 1. 2 - 3 : List - Student Management System 1.2.2 Data Validation

  • The data included in the tables is factual and 100 percent accurate. It is taken from the data of FPT school itself.

StudyProgramID StudyProgramName PE Pearson Education

Table 1. 2 - 4: Study Program Data........................................................................................................

SubjectsID SubjectsName MajorID Pro Programming IT DB Database IT Web Web Development IT Mar Marketing BA BS Business Strategy BA Typo Typography GD

Table 1. 2 - 5: Study Program Data........................................................................................................

StudentID SubjectsID ExamTimes TestScore BDAF200036 DB 1 9 BDAF200037 Pro 2 10 BDAF200038 DB 1 8 BDAF200038 Pro 1 7 BDAF200039 Web 1 5 BDAF200040 Pro 1 8 BDAF200040 Web 1 10 BDAF200040 DB 1 7 BDAF200041 Typo 2 9 BDAF200042 Typo 1 8 BDAF200043 Mar 1 7 BDAF200044 BS 1 7 Table 1. 2 - 6 : Result Data

StudyProgramID MajorID SubjectsID SchoolYear PE IT Pro 2020 PE BA Mar 2020 PE GD Typo 2020 Semester NumberThereticalPeriods NumberPracticePeriods NumberCreddits 1 10 5 15 1 10 5 15 1 10 5 15

Table 1. 2 - 7: Result Data....................................................................................................................

Class ID CourseID MajorID StudyProgramID ClassNo IT16101 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).
  • In the table above, note the numerous class values for each value of the student. Class does not depend on the student functionally (primary key), thus this connection is not second-normal.
  • The tables show the second normal shape:
  • Students: StudentID Student Adv-Room 1022 Viet 412 4123 Hoang 216

Table 1.2-11: Second normal form (2NF) Example............................................................................

  • Registration: StudentID Class 1022 101 - 07 1022 143 - 01 1022 159 - 02 4123 101 - 07 4123 143 - 01 4123 179 - 04

Table 1. 2 - 13 : Third normal form (3NF) Example...............................................................................

- Third normal form: Eliminate data not dependent on key + In the latter case, Adv-Room (office number of the adviser) depends on the advisor characteristic.

  • As illustrated below, the answer is to transfer this feature from the students' database to the faculty's table:
  • Students: StudentID Student 1022 Viet 4123 Hoang

Table 1. 2 - 14: Third normal form (3NF) Example...............................................................................

  • Faculty: Name Room Dept Viet 412 42 Hoang 216 42 Table 1. 2 - 14 : Third normal form (3NF) Example 1.3 Assess the effectiveness of the design in relation to user and system requirements. (D1) Figure 1. 3 - 1 : User and system requirements
  • This student administration system guarantees the demands of users. Ensure fast and convenient data storage, import and export. Nice, easy-to-use UI.
  • Only the Windows operating system and the database management system are not too necessary (SQL Server Management). All features to finish user and system requirements are included. For example, input, edit, delete data, export data, basic user computing and system usage.
  • ERD entities have a close connection to the relation-base management system. To decrease the duplication of data during operation of the system. Partner entities ensure links with each other to make use of the underlying SQL complements. Ensure functional needs of the system and user. ➢ I am absolutely sure that this system offers users all the necessary criteria!