Docsity

Database Design and Development for an Enrollment System, Schemes and Mind Maps of Design history

Toggle sidebar
bg1
1
ASSIGNMENT 1 FRONT SHEET
Qualification
TEC Level 5 HND Diploma in Computing
Unit number and title
Unit 04: Database Design & Development
Submission date
June 28, 2021
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
HOANG DINH HIEU
Student ID
BHAF200117
Class
PBIT17101
Assessor name
DINH THI MINH NGUYET
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
hieu
Grading grid
P1
M1
D1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Database Design and Development for an Enrollment System and more Schemes and Mind Maps Design history in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date June 28, 2021 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name HOANG DINH HIEU Student ID BHAF Class PBIT17101^ Assessor name DINH THI MINH NGUYET 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 (^) hieu Grading grid

P1 M1 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

I. Introduction This report aims to analyze requirements and makes clear statements about user and system requirements; Design relational database system with appropriate design tools and techniques; Develop a fully functional relational database system, based on the existing system design; Test the system against user and system requirements; Producing technical documents and users. I chose an Enrolment system to develop the database for FPT University.

II. Database Design (P1)

1. Scenario of the chosen system

A big IT consulting firm has been approached by FPT university, which is growing due to the increase in student enrollment. FPT is currently experiencing problems in administering the university. It made the decision to create many academic systems that make it easier to administer the institution include: Online Library system, Student Grading System, Attendance System, CMS System, Scheduling System, Enrolment Systems, and so on. Working as a Database Developer for the firm, I choose the database design for the Enrolment Systems.

2. SRS (System Requirement Specification)

After working with FPT, I have found out about current requirements for the Enrolment Systems:

  • Allows storing and retrieving student information. For each student need to manage the following information: Student code, student's full name, date of birth, place of birth, address, identification number (or identity card)
  • Store and retrieve information about the school's subjects and teachers including: Subject code, subject name, course description, duration (how many weeks), teacher's name, teacher number, recruitment date teacher.

shared corporate resource. The database holds not only the organization’s operational data, but also a description of this data. For this reason, a database is also defined as a self-describing collection of integrated records ”. (Connolly and Begg, 2015) Put simply, database is a shared collection of logically related data and its description, designed to meet the information needs of an organization. 3.2 Components of a database When we analyze the information needs of an organization, we attempt to identify entities, attributes, and relationships. An entity is a distinct object (a person, place, thing, concept, or event) in the organization that is to be represented in the database. (Connolly and Begg, 2015) An attribute is a property that describes some aspect of the object that we wish to record, and a relationship is an association between entities. (Connolly and Begg, 2015) 3.3 Database management system (DBMS) 3.3.1 Database Management System A database management system (DBMS) is a software package designed to define, manipulate, retrieve and manage data in a database. A DBMS generally manipulates the data itself, the data format, field names, record structure and file structure. It also defines rules to validate and manipulate this data. (Connolly and Begg, 2015)

Typically, a DBMS provides the following facilities:

  • It allows users to define the database, usually through a Data Definition Language ( DDL ). The DDL allows users to specify the data types and structures and the constraints on the data to be stored in the database. (Connolly and Begg, 2015)
  • It allows users to insert, update, delete, and retrieve data from the database, usually through a Data Manipulation Language ( DML ). Having a central repository for all data and data descriptions allows the DML to provide a general inquiry facility to this data, called a query language. (Connolly and Begg, 2015) Software developers have become familiar with database concepts through relational databases like Oracle, SQL SERVER and MySQL, etc. Database architecture can be external, internal or conceptual. The external level specifies how all end users understand how to organize its corresponding related data in the database. Internal level related to performance, scalability, cost and other operational issues. The conceptual level completely unifies different external perspectives into a definitive and whole global perspective. It includes all mandatory general data of end users. (Connolly and Begg, 20 15) 3.3.2 Table A relational database is made up of several components, of which the table is most significant. The database table is where all the data in a database is stored, and without tables, there would not be much use for relational databases. (What is a Database Table? - Essential SQL, 2021)

A primary key is a special relational database table column (or combination of columns) designated to uniquely identify each table record. (What is a Primary Key? - Definition from Techopedia, 2021) A primary key is used as a unique identifier to quickly parse data within the table. A table cannot have more than one primary key. (What is a Primary Key? - Definition from Techopedia, 2021) A primary key’s main features are:

  • It must contain a unique value for each row of data.
  • It cannot contain null values.
  • Every row must have a primary key value. A primary key might use one or more fields already present in the underlying data model, or a specific extra field can be created to be the primary key. (What is a Primary Key? - Definition from Techopedia, 2021) 3.3.5 Foreign key A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. It acts as a cross-reference between tables because it references the primary key of another table, thereby establishing a link between them. The majority of tables in a relational database system adhere to the foreign key concept. In complex databases and data warehouses, data in a domain must be added across multiple tables, thus maintaining a relationship between them. The concept of referential integrity is derived from foreign key theory. Foreign keys and their implementation are more complex than primary keys. (What is a Foreign Key? - Definition from Techopedia, 2021)

3.4 Entity Relation Diagrams An entity relation diagram (ERD) is, as the name implies, a diagram of entities, their attributes, and the relationships between the entities. Most ERDs depict entities as rectangles with three horizontal sections—the entity name, the primary key, and then the other attributes—and two or more vertical portions, the first holding information about keys and indexes and the second containing attribute name. (Conger, 2012)

4. Explanation

Here are my explanations for the relationships between entities based on the system's requirements:

  • The relationship between Student and Subject is one-many-many-one, because each student must attend at least one course or more. And each course can only have one student or more. So to normalization the data, I have to add a linked table and turn this link into a one-to-many and many-to- one.
  • The table StudentSubject will be the linked table between table Student and table Subject. With this linked table, we can retrieve exactly class, semester and year of each subject that belongs to which student.
  • The relationship between table Student and table StudentAccount is one-to-one , each student can have only one account (that allows only students to access after successful login can register and review registered courses), and one account can only belong to one and only one student.
  • The relationship between table Teacher and table Subject is one-many-many-one , because each subject can have from 1-2 teachers participating in teaching, and one teacher can teach one or more subjects. So to normalization the data, I also have to add a linked table and turn this link into a one-to- many and many-to-one.
  • The table TeacherSubject will be the linked table between table Teacher and table Course.

5. Physical design

Physical database design represents the materialization of a database into an actual system. While logical design can be performed independently of the eventual database platform, many physical database attributes depend on the specifics and semantics of the target DBMS. Physical design is performed in two stages:

  • Conversion of the logical design into table definitions (often performed by an application developer): includes pre-deployment design, table definitions, normalization, primary and foreign key relationships, and basic indexing.
  • Post deployment physical database design (often performed by a database administrator): includes improving performance, reducing I/O, and streamlining administration tasks. (Lightstone S.S- 2009 ) In this section, I will demonstrate how to construct a database in which users may store and retrieve data. I'll utilize the SQL Server to do this. Here are the commands and syntax to do this demo (all commands will be executed only when "Execute" button is pressed) To create and use a new database:

Figure 5: Create a linked Student and Student table Figure 6: Create Student Account table Figure 7: Create Teacher table

Figure 8: Create a linked Teacher and Subject table As a result, tables, entities, and attributes are linked as shown: Figure 9: Linking tables To add new information to table:

Figure 13 : Insert into Student Account table Figure 14 : Insert into Student Subject table After inserting the data, we get the result:

Figure 15: Data in Student table Figure 16: Data in Student Account table