ASM1 - Full Name - ID
ASM1 - Full Name - ID
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
Grading grid
P1 M1 D1
2|Page
ASSIGNMENT 1 BRIEF
Qualification BTEC Level 5 HND Diploma in Computing
Assignment title
Academic Year
Unit Tutor
Submission Format:
LO1 Use an appropriate design tool to design a relational database system for a substantial problem.
LO2 Develop a fully functional relational database system, based on an existing system design.
3|Page
LO3 Test the system against user and system requirements.
LO4 Produce technical and user documentation
You are employed as a Database Developer for a large IT consultancy company. The company has been
approached by FPT university which is expanding due to the growth of the number of students. FPT is
currently facing difficulties in dealing with managing the university. It decided to develop several academic
systems to manage the university easier including: Online Library system, Student Grading System,
Attendance System, CMS System, Scheduling System, Enrolment Systems, and so on.
You are tasked to select one of those systems to develop database for FPT university. Your tasks are to:
Work with FPT to find out about current requirements for each system
Analyze the requirements and produce clear statements of user and system requirements.
Design a relational database system using appropriate design tools and techniques
Develop a fully functional relational database system, based on an existing system design.
Test the system against user and system requirements.
Produce technical and user documentation
Part 1 (Assignment 1)
Before you start the development process, your manager has asked you to produce a report for the CEO
of FPT, containing:
1. Clear statements of user and system requirements. The system must have at least 2 user roles, including
business processes and statistical reports for FPT university managers.
2. The design of the relational database system using appropriate design tools and techniques. It should
contain at least four interrelated tables.
You would prefer to produce a more detailed document, so you will produce a comprehensive design for a
fully functional system which will include interface and output designs, data validations and cover data
normalization.
Your manager would like on the report your assessment of the effectiveness of the design in relation to user
and system requirements.
Part 2 (Assignment 2)
Once the designs have been accepted by your manager you have been asked to:
1.3. Develop the database system using evidence of user interface, output and data
validations and querying across multiple tables.
4|Page
You want to include more than just the basics so you will implement a fully functional database system
which will include system security and database maintenance features.
2. You have decided to implement a query language into the relational database system. The developed
system will be demonstrated to your manager in the report including:
• Assessing whether meaningful data has been extracted through the use of query tools to produce
appropriate management information.
• Evaluating the effectiveness of the database solution in relation to user and system requirements,
and suggest improvements.
3. Once the system has been developed, you will test the system and your manager will complete a witness
statement indicating how your tests are performing against user and system requirements.
Besides, you will produce a brief report assessing the effectiveness of the testing, including an explanation
of the choice of test data used.
4. Lastly you will produce technical and user documentation which will be given to the company.
You want to provide some graphical representations for ease of reference in the technical guide, so you
have decided to produce a technical and user documentation for a fully functional system, including
diagrams showing movement of data through the system, and flowcharts describing how the system
works.
LO1 Use an appropriate design tool to design a relational database system for a substantial problem
5|Page
ASSIGNMENT ANSWER
+ Because of the pandemic, many students aren’t be able to borrow books or get its information on
the spot
+ With more and more students borrow books which lead to information overload to the library,
incorrect information like wrong borrow date, extraordinary expenses, …. Usually appear
So I decide to develop an efficient fully functional database system for FPT university which I call
Online Library system with specific IDs and many features . Online Library system will replace the
traditional library in the upcoming future
4. Explanation
Explain briefly about ERD (entities, their relationship). Give reasons why ERD is suitable for
the system
5. Physical design
3. Normalization:
Explain why each of the table is 3rd Normal Form, if not, explain why.
6|Page
III. DESIGN EVALUATION (D1)
-Explain in details and with critical review, how your ERD design (entities, relationships) can
meets the user and system requirements.
Scenario
After the cooperation of FPT university and NVIDIA Inc, it is essential for me to design database for
FPT university’s education system. FPT is concerned about the growth of the number of students in a
few next semesters. As I observe opinions and complaints from most students from FPT university,
most of them mention about the traditional library. Due to the increase in students, The traditional
system can’t meet student needs . Here are some reasons about it:
+ Because of the pandemic, many students aren’t be able to borrow books or get its information on
the spot
+ With more and more students borrow books which lead to information overload to the library,
incorrect information like wrong borrow date, extraordinary expenses, …. Usually appear
+ Traditional library with outdated methods
So I decide to develop an efficient fully functional database system for FPT university which I call
Online Library system with specific IDs and many features . Online Library system will replace the
traditional library in the upcoming future
I will explain this system thoroughly in the remain pages
7|Page
TABLE OF CONTENTS
I. DATABASE DESIGN
2.2. Entities................................................................................................................. 11
2.4. Attribute............................................................................................................... 13
8|Page
ASSIGNMENT 1
I. DATABASE DESIGN
- The Online Library System is intended to automate the library activities such as creating
a new borrower, giving books to the borrowers, maintaining the details of all the item that
were available in the books . This also helps the librarians by providing information such
as borrow date, book titles, ….
- System requirements:
+ Students are allowed to log in to the online library system with student ID
+ Database of student information storage systems such as student names, student phone
numbers, gmail students
+ The system helps manuals to create, update and exploit information easier. Data will be
updated regularly and will not be copied. Using databases to help store them and easily
manage them.
+ The system allows students to check the information of the book they borrowed, the loan date,
return date and buy rental books
+ The system needs to ensure that no two students have the same ID and librarian and books
+ After the student logs in and searches for boolid, baborid, libraryid. The system will be able to
display all the information at the same time
9|Page
+ Detecting system when students enter wrong data types
- Usecase Diagram:
10 | P a g e
2.Logical design (ERD)
2.2. Entities
+ Domain entities
11 | P a g e
- Now look at the figure 2, There are some domain entities such as users, coach,
habits,…
+ Linking entities
+ Lookup entities
- In this case, CarMake and CarModel describe a single entity set each. Their
functional dependencies are CarMakeId -> CarMakeName and CarModelId ->
CarModelName
+ Weak entities
12 | P a g e
- In a relational database, a weak entity is an entity that cannot be uniquely
identified by its attributes alone; therefore, it must use a foreign key in conjunction
with its attributes to create a primary key. It dependent on other entities for its
meaning
- Grade is a weak entity in figure 4 because Student ID and Subject ID define its
meaning.
2.4. Attribute
Figure 7.Table Habits
• Multivalued attribute: is an attribute where more than one description can be provided.
For example, an Employee entity may have more than one Email ID attributes in the
same cell.
• Key attribute or primary attribute: is an ID, key, letter or number that uniquely identifies
that item. For example, it can be the number of a certain invoice (e.g. the individual ID of
that invoice). A table that contains a single key attribute is considered a strong entity.
However, a table might contain more than one key attribute if it’s derived from other
tables.
• Derived attribute: as the name implies, these are derived from other attributes, either
directly or through specific formula results. For example, the Age attribute of an
Employee could be derived from the Date of Birth attribute. In other instances, a formula
might calculate the VAT of a certain payment, so that whenever the cell with the attribute
Payment is filled, the cell with the derived attribute VAT automatically calculates its value.
13 | P a g e
+ One to one relationship:
- Each row in the primary entity, there can be no more than 1 related row in the secondary
entity
- One to one relationship crow’s foot
- Each record in the primary entity there can be many associated records in the secondary
entity
- One to many relationship crow’s foot
- Each record in a primary entity can have many related records in a secondary
entity
- Each record in the secondary entity can have many related records in the primary
entity
- Many to many relationship Crow’s foot
14 | P a g e
2.8. Online library system logical design (ERD)
+ Every student has an unique number Which is called Student ID so as Book, Author
and Borrow
+ Table Student display Student ID, Student’s Name, Student Gmail, Student Phone
Number
+Table Librarian include Librarian ID, Full Name, Gmail and Phone Number
+Table Borrow Books include Borrow ID, Student ID, Librarian ID, Borrow Date , Return
Date
+Table BorrowDetail include BorrowID, BookID, quantity and Book rental cost
+ Visual representation: it makes database easier to design and being able to identify the flow of
data and the operation of the entire system is made
15 | P a g e
+ Effective communication: Because of using given symbols to represent different types of
information. This symbol allow designer to understand database properly
+ Easy to understand: Designer can easily design entity relationship diagram so all individuals
can also understand them.
3. Physical Design
3.6. Physical database design
Table: Student
Field name Data type Allow Description
nulls
studentID Nvarchar(10) No Primary Key
studentFullName Nvarchar(30) No Name of the student
studentGmail Nvarchar(40) Yes Student Gmail
studentPhoneNumber Nvarchar(10) Yes Student Phone Number
Table: Librarian
Field name Data type Allow nulls Description
librarianID Nvarchar(10) No Primary Key
librarianName Nvarchar(20) No Name of the librarian
librarianGmail Nvarchar(30) Yes Librarian Gmail
librarianPhoneNumber Nvarchar(20) Yes Librarian Phone Number
Table: Borrow
Field name Data type Allow nulls Description
borrowID Nvarchar(10) No Primary Key
studentID Nvarchar(10) No Foreign Key
librarianID Nvarchar(10) No Foreign Key
borrowDate Date Yes Book borrow date
returnDate Date Yes Book return date
Table: Book
Field name Data type Allow nulls Description
bookID Nvarchar(10) No Primary Key
bookTitle Nvarchar(30) Yes Bok title
bookCategory Nvarchar(20) Yes Book category
bookPublisher Nvarchar(20) Yes Book Pubisher
Table: BorrowDetail
Field name Data type Allow nulls Description
bookID Nvarchar(10) No Primary key, Foreign key
borrowID Nvarchar(10) No Primary key, Foreign key
quantity int Yes amount of borrow books
BookRentalCost Int Yes Book Rental Cost
16 | P a g e
17 | P a g e