0% found this document useful (0 votes)
78 views31 pages

Higher National Diploma in Computing Final Report of Assignments 1+2 UNIT: Database Design & Development

This document is the final report for assignments 1 and 2 of a database design and development unit. It includes the student's name, class details, supervisor name, and grading criteria for passing, merit, and distinction levels. The report contains sections on database normalization, system design including creating database tables and views, test cases and logs to test the system requirements, and technical documentation. Diagrams are provided showing the entity relationship diagram and database relationships. The conclusion evaluates the effectiveness of the database solution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views31 pages

Higher National Diploma in Computing Final Report of Assignments 1+2 UNIT: Database Design & Development

This document is the final report for assignments 1 and 2 of a database design and development unit. It includes the student's name, class details, supervisor name, and grading criteria for passing, merit, and distinction levels. The report contains sections on database normalization, system design including creating database tables and views, test cases and logs to test the system requirements, and technical documentation. Diagrams are provided showing the entity relationship diagram and database relationships. The conclusion evaluates the effectiveness of the database solution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

HIGHER NATIONAL DIPLOMA IN COMPUTING

FINAL REPORT OF ASSIGNMENTS 1+2


UNIT: Database Design & Development
Assignment Name:
Database Design & Development

Student : Nguyen Van Hieu


Class : BDAF-2005-1
Student ID : BDAF190023
Supervisor : Ho Van Phi

Danang, May 2019


Grading grid
P1 P2 P3 P4 P5 M1 M2 M3 M4 M5 D1 D2 D3

❒ Summative Feedback: ❒ Resubmission


Feedback:

Grade: Assessor Signature: Date:


Signature & Date:
INSTRUCTOR/ SUPERVISOR/ ASSESSOR
ASSIGNMENT FRONT SHEET
Learning Outcomes and Assessment Criteria

Pass Merit Distinction

LO1 Use an appropriate design tool to design a relational database system for a substantial
problem

P1 Design a relational M1 Produce a comprehensive D1 Assess the


database system using design for a fully functional system effectiveness of the
appropriate design tools and which includes interface and output design in relation to
techniques, containing at least designs, data validations and data user and system
four interrelated tables, with normalisation. requirements.
clear statements of user and
system requirements.
LO2 Develop a fully functional relational database system, based on an existing system
design.
LO3 Test the system against user and system requirements.
LO4 Produce technical and user documentation
P2 Develop the database M2 Implement a fully functional LO2 & 3
system with evidence of user database system which includes D2 Evaluate the
interface, output and data system security and database effectiveness of the
validations, and querying maintenance. database solution in
across multiple tables. relation to user and
M3 Assess whether meaningful system
P3 Implement a query data has been extracted through requirements, and
language into the relational the use of query tools to produce suggest
database system. appropriate management improvements.
information.

P4 Test the system against M4 Assess the effectiveness of the


user and system requirements. testing, including an explanation of
the choice of test data used.
P5 Produce technical and user M5 Produce technical and user D3 Assess any future
documentation. documentation for a fully functional improvements that
system, including ER Diagram and may be required to
normalization statements and ensure the continued
effectiveness of the
describing how the system works.
database system.
ACKNOWLEDGMENTS
First of all, a special thank you to my family, which encouraged me, for enabling
me to perform my duties in the most perfect way.
Secondly, I would like to express my gratitude to the person who helped me to gain
a lot of knowledge, who has made great efforts in guiding me to achieve my
academic results as well as my support in the learning process.
Besides, I have been helped a lot by many discussions with my classmates at FPT
International College BTEC FPT. So, thank you so much for coming with them.

Danang ,December 2020


Who perform

Nguyen Van Hieu


ASSURANCE
I certify that this assignment is my own work, based on my personal study and that
I have acknowledged all material and sources used in its preparation, whether they
be books, articles, reports, lecture notes, and any other kind of document,
electronic or personal communication. I also certify that this assignment has not
previously been submitted for assessment in any other unit, except where specific
permission has been granted from all unit coordinators involved, or at any other
time in this unit, and that I have not copied in part or whole or otherwise plagiarised
the work of other persons.

Learners declaration

I certify that the work submitted for this assignment is my own and research sources
are fully acknowledged.
Student signature: Nguyen Van Hieu Date: 22/12/2020
TABLE OF CONTENT

INSTRUCTOR/ SUPERVISOR/ ASSESSOR.......................................................... 3

ASSIGNMENT FRONT SHEET .............................................................................. 3

ACKNOWLEDGMENTS ......................................................................................... 4

ASSURANCE.......................................................................................................... 5

Chapter 1: INTRODUCTION .................................................................................. 9

1. Introduction about database ...................................................................... 9

1.1. ACTUAL ANALYSIS ............................................................................. 9

Chapter 2 : SYSTEM ANALYSIS ......................................................................... 11

2 DATABASE NORMALIZATION ................................................................ 11

2.1 System analysis ..................................................................................... 11

CHAPTER 3: SYSTEM DESIGN .......................................................................... 14

3 Database design ............................................................................................... 14

3.1 Purpose, Scope, Composition ................................................................. 14

3.2 CREATE DATABASE ........................................................................... 15


3.3 CREATE VIEW ALLOW DATA STATISTICS AS REQUIRED ............. 22

CHAPTER 4: TEST CASE AND TEST LOG ........................................................ 25

4.1 TEST CASE .......................................................................................... 25

4.2 TEST LOG............................................................................................ 27

4.2 Technical Document .......................................................................... 30

CONCLUSITION ................................................................................................... 31
LIST OF FIGURE
Figure 1 ERD.......................................................................................................................... 13
Figure 2 NguoiDoc Table....................................................................................................... 15
Figure 3 MuonSach Table ..................................................................................................... 16
Figure 4 ChiTietMuon Table ................................................................................................. 16
Figure 5 Sach Table ............................................................................................................... 17
Figure 6 TheLoai Table .......................................................................................................... 17
Figure 7 Database Diagram .................................................................................................. 18
Figure 8 NGUOIDOC Table .................................................................................................... 19
Figure 9 MuonSach Table ..................................................................................................... 19
Figure 10 CHITIETMUON Table ............................................................................................. 19
Figure 11 THELOAI Table ...................................................................................................... 20
Figure 12 CHITIETMUON Table ............................................................................................. 20
Figure 13 THELOAI Table ...................................................................................................... 21
Figure 14 NGUOIDOC Table .................................................................................................. 21
Figure 15 MUONSACH Table ................................................................................................ 22
Figure 16 THELOAI Table ...................................................................................................... 22
Figure 17 CHITIETMUON Table ............................................................................................. 22
Figure 18 Detailed Statistics View ........................................................................................ 23
Figure 19 See details amount of people borrowing books .................................................. 24
Chapter 1: INTRODUCTION

Today, information technology is considered as the first field showing the


development level of a country. Currently, related applications in the category of IT
technology are very interested in. Information technology is being strongly
developed in the fields of production management, business management, service
in these fields, in fact, it shows the effectiveness of information technology when
applied to management. reason, it reduces the table, contributes significantly to the
statistics to avoid errors at work
For the relatively complex library management work including many different jobs, it
proves that the management becomes more difficult, it takes a lot of manpower and
time to solve the work and is inevitable. errors. Therefore, it is necessary to have a
better and more optimal plan to be able to manage the bookstore effectively.

1. Introduction about database

Database is the word commonly used in the fields of information technology, data,
programming and software ... .Database is a database, is a collection of data
organized and often displayed. accessed from a computer system or exists as a
file in the database administration system. Database can also be stored on
memory devices such as memory card, hard disk, CD ...
A database is a system of structured information, stored on storage devices in
order to satisfy the need to exploit concurrent information of multiple users or
multiple application programs running at the same time. with different purposes. It
includes lots of data such as a sales list, a list of clothing, a list of clothes sold, ...
this helps us to manage the store quickly and conveniently.
1.1. ACTUAL ANALYSIS
1.1.1 How to store information
Introduction to the library:
The library that I choose is a relatively large library at a high school with many
different types of books. Every day the library welcomes many students to read and
borrow books. I have noticed that after each borrowing of books, the management
and business work takes a lot of time, effort, papers and books.
I will plan and design a template to make library management easier and faster.
1.1.2 Organization And Managing books in libraries
• Adding and preserving books
The library manager accepts the imported books for book classification and
numbering. Here, each book will be reviewed the content and genre through which
the classification of the book will also be numbered for convenient searching,
through this code, the manager can know the book. booked. After being classified
and encoded, it will be given a table of contents card, on which there are book
codes, titles, readers ...
Damaged or inappropriate content in the management will be considered a
violation and removed from the archive management system.
• Serving the Readers
When there is a need to find out documents, readers who register to be library
cards to make library cards are granted registration cards. In the registration form,
the person must fill out some personal information. This card will be provided and
archived by the library and the reader will be given a library card, the reader will
have the code and other information. The institute will manage the readers through
this code.
Readers can register to borrow books through the request form with the library on
the card with the card number and number of books to be borrowed, the title of the
book, the date of borrowing, the date of return, ... checked by staff. is the reader.
All acts of violating the library's rules such as: borrowing too many books,
borrowing overdue books, damaging books, ... to take measures to handle.
• Advantages and disadvantages of library management
Advantages: The library management system meets the essential requirements of
the library management.
Disadvantage: The management system uses a lot of documents, so the
preservation and searching takes a lot of time. The system has many errors, the
management has many difficulties when readers pay the borrowed money, they
have to do it manually. So the book classification also takes a long time .
Chapter 2 : SYSTEM ANALYSIS

Through the steps of analyzing the current state of information collected, we have
current information in the library under management as follows: NguoiDoc, MSThe,
HoTen, TenLop, Sach, MSsach, TenSach, MaTL, Muon, NgayMuon, NgayTra ,
TTSachMuon, Tra, NgayTra, TTsachTra, ViPham, DaThucHien, TheLoaiSach,
TenTL.
2 DATABASE NORMALIZATION

From the collected information, the database can be standardized as follows:


- From UNF to 1NF: You can see the MaThe, HoTen and TenLop properties are
repeated, so they need to be broken down into new tables.
- From 1NF to 2NF: Borrow first table has a primary key of 1 field, so it belongs to
2NF. For the second table, we can see the following properties: MSThe, HoTen,
TenLop depend on NguoiDoc, so they are separated and linked to the part key they
depend on (MSsach) to form the table new.
- From 2NF to 3NF: The first table we can see properties like: NguoiDoc, HoTen,
TenLop depending on MSThe, so we divided into a new table (NguoiDoc).
Properties like MSsach, TenSach and MaTL depend on MaSach so we split it into a
new table (SACH). In the next table, Muon, MSThe, Tra, ViPham, XuLy,
DaThucHien depend on (MUONSACH), so we divide it into a new table
(CHITIETMUON,). In the final table, attributes like TenTL depend on MaTL, so we
split it into a new table (THELOAI).
- Through standardization process, we have 5 tables such as NguoiDoc, SACH,
MUON, CHITIETMUON, THELOAI. The normalization process can be described
in the following table.
2.1 System analysis
By analyzing the current state of information collected, we have the current
information that the store is managing as follows
2.1.1 Standardize information
UNF 1NF 2NF 3NF

MaMuonSach MaMuonSach MaMuonSach MaMuonSach


MSThe MSThe MSThe MSSach
HoTen HoTen HoTen SoLuong
TenLop TenLop TenLop MSSach
MSSach NgayMuon NgayMuon TenSach
NgayMuon NgayTra NgayTra MaTL
TenSach TenSach XuLy MaTL
NgayTra XuLy Tra TenTL
ViPham Tra DaThucHien MaMuonSach
XuLy DaThucHien MaMuonSach MSThe
Tra MSSach MSSach NgayMuon
DaThucHien TenSach SoLuong NgayTra
SoLuong SoLuong MSSach XuLy
MaTL MaTL TenSach Tra
TenTL TenTL MaTL DaThucHien
TenTL MSThe
HoTen
TenLop

Table 1 Standardize information


Through standardization of database, it is organized according to the following
tables
NGUOIDOC (MSthe, HoTen, TenLop)
MUONSACH (MaMuonSach, MSThe, NgayMuon, NgayTra, ViPham, XuLy,
DaThucHien)
CHITIETMUON (MaMuonSach, MSSach, SoLuong )
SACH (MSSach, TenSach, MaTL)
THELOAI (MaTL, TenTL)
2.1.2 ERD (Entity Relationship Diagram)

Figure 1 ERD
Explain the relationship between entities:
- A student can choose a variety of books at the library so that the student code will
be displayed by multiple card numbers. Therefore, the relationship between students
and cards is one-to-many.
- A book category may have multiple titles, so the relationship between genre and
book is a one-to-many relationship.
- Card code can have many different book codes, so the relationship between card
and card details is a one-to-many relationship.
CHAPTER 3: SYSTEM DESIGN

3 Database design

3.1 Purpose, Scope, Composition


The database helps us manage the number of books in the library, which will help the
library not lose books and save time for managers:

As mentioned in the above sections, this database contains 5 tables: NGUOIDOC,


MUONSACH, CHITIETMUON, SACH, THELOAI . Details of the submitted tables
are as follows:

3.1.1 Detailed description of the table


- The table NGUOIDOC allows to store information about readers:

Column name Data Type Allow null Contraint


MSThe Nvarchar(10) no PK
Tenlop Nvarchar(30) Yes no
Hoten nvarchar(50) Yes no
Table2: NGUOIDOC Table
- Information about borrowing details table:

Column name Data Type Allow null Contraint


MaMuonSach Nvarchar(10) No PK,FK
MSSach Smallint No PK,FK
SoLuong int No Check(SoLuong>0)
Table3: ChiTietMuon Table
- Information about borrowed tables:

Column name Data Type Allow null Contraint


MaMuonSach Nvarchar(10) No PK
MSthe Nvarchar(10) No FK
NgaytraSach Datetime No no
Vipham Nvarchar(10) No No
XuLy Nvarchar(10) No No
Dathuchien Nchar(10) no no
Table4: MuonSach Table
- Book list for book information:

Column name Data Type Allow null Contraint


MSSach Nvarchar(10) No PK
Tensach Nvarchar(50) No No
MaTL Nvarchar(10) No FK
Table5: Sach Table
- Category table stores information about categories:

Column name Data Type Allow null Contraint


MaTL Nvarchar(10) no PK
TenTL Nvarchar(50) No No
Table6: TheLoai Table
3.2 CREATE DATABASE
3.2.1 NGUOIDOC Table

Figure 2 NguoiDoc Table

create table NGUOIDOC (


MSthe nvarchar (10) not null primary key,
hoten nvarchar (50) not null,
tenlop nvarchar (30) not null,
)
3.2.2 Muon Table

Figure 3 MuonSach Table

create table MUONSACH (


MaMuonSach nvarchar (10) not null PRIMARY KEY,
Msthe nvarchar (10) not null,
ngayTraSach datetime not null,
ViPham nvarchar (10) not null,
XuLy nvarchar (10) not null,
DaThucHien nchar (10) not null,
)

3.2.3 ChiTietMuon Table

Figure 4 ChiTietMuon Table

create table CHITIETMUON (


MaMuonSach nvarchar (10) not null,
MSsach smallint not null,
SoLuong int not null,
CONSTRAINT PKCHITIETMUON PRIMARY KEY (MaMuonSach,MSSach))
3.2.4 Sach Table

Figure 5 Sach Table

create table SACH (


MSsach smallint not null primary key,
Tensach nvarchar (50) not null,
MaTL nvarchar (10) not null,
Soluong int not null,
)

3.2.5 TheLoai Table

Figure 6 TheLoai Table

create table TheLoai (


MaTL nvarchar (10) not null primary key,
tenTL nvarchar (50) ,
)
3.2.6 THE DIAGRAM SHOWS RELATIONSHIP BETWEEN TABLES

Figure 7 Database Diagram

3.2.7 INSERT DATA INTO TABLES:


Command to insert data into NGUOIDOC Table:
INSERT into NGUOIDOC (MSthe, hoten, tenlop) VALUES ( 1, ' Nguyen Van Thanh ',
'T01');
INSERT into NGUOIDOC (MSthe, hoten, tenlop) VALUES ( 2, ' Nguyen Van Hieu ',
'T02');
INSERT into NGUOIDOC (MSthe, hoten, tenlop) VALUES ( 3, ' Nguyen An Dien ',
'T03');
INSERT into NGUOIDOC (MSthe, hoten, tenlop) VALUES ( 4, ' Le Van Phong ',
'T04');
INSERT into NGUOIDOC (MSthe, hoten, tenlop) VALUES ( 5, ' Nguyen Tuong vi ',
'T05');

NGUOIDOC Table after insert data:


Figure 8 NGUOIDOC Table
Command to insert data into MUONSACH Table:
INSERT into MUONSACH (MaMuonSach, MSthe, ngayTraSach, ViPham, XuLy, DaThucHien)
VALUES ( 'MA1', 1, '2020-07-01', 'KHONG', 'KHONG', 'ROI');
INSERT into MUONSACH (MaMuonSach, MSthe, ngayTraSach, ViPham, XuLy, DaThucHien)
VALUES ( 'MA2', 2, '2020-12-08', 'KHONG', 'KHONG', 'ROI');
INSERT into MUONSACH (MaMuonSach, MSthe, ngayTraSach, ViPham, XuLy, DaThucHien)
VALUES ( 'MA3', 3, '2020-04-06', 'TRA', 'CO', 'ROI');
INSERT into MUONSACH (MaMuonSach, MSthe, ngayTraSach, ViPham, XuLy, DaThucHien)
VALUES ( 'MA4', 4, '2020-05-02', 'KHONG', 'KHONG', 'ROI');
INSERT into MUONSACH (MaMuonSach, MSthe, ngayTraSach, ViPham, XuLy, DaThucHien)
VALUES ( 'MA5', 5, '2020-09-09', 'TRA', 'KHONG', 'ROI');

MUONSACH Table after insert data:

Figure 9 MuonSach Table

Command to insert data into CHITIETMUON Table:


Insert into CHITIETMUON (MaMuonSach,MSsach,SoLuong) Values ('MA1', 2 , 2 );
Insert into CHITIETMUON (MaMuonSach,MSsach,SoLuong) Values ('MA2', 6 , 1 );
Insert into CHITIETMUON (MaMuonSach,MSsach,SoLuong) Values ('MA3', 5 , 3 );
Insert into CHITIETMUON (MaMuonSach,MSsach,SoLuong) Values ('MA4', 4 , 2 );
Insert into CHITIETMUON (MaMuonSach,MSsach,SoLuong) Values ('MA5', 3 , 1 );

CHITIETMUON Table after insert data:

Figure 10 CHITIETMUON Table


Command to insert data into THELOAI Table:
insert into TheLoai (MaTL,TenTL) values ('BA01', 'TinhYeu');
insert into TheLoai (MaTL,TenTL) values ('BA02', 'DongVat');
insert into TheLoai (MaTL,TenTL) values ('BA03', 'DoanhNhan');
insert into TheLoai (MaTL,TenTL) values ('BA04', 'KienThuc');
insert into TheLoai (MaTL,TenTL) values ('BA05', 'TrinhTham');

THELOAI Table after insert data:

Figure 11 THELOAI Table

3.2.8 UPDATE DATA INTO TABLES


Library wants to change a certain data in the table. For example, we changed
SoLuong '1' to '2'. We have the following command:
UPDATE CHITIETMUON

SET SoLuong = 2
WHERE MSsach = 6 ;

The table after update data:

Figure 12 CHITIETMUON Table


3.2.9 DELETE DATA INTO TABLES
When a student leaves work and the library manager wants to remove the student from
TheLoai table. For example, the shop owner wants to delete an employee with MaTL
‘BA05 '. We have the following order:
DELETE THELOAI

WHERE MaTL='BA05'

Figure 13 THELOAI Table

3.2.10 DISPLAY TABLE INFORMATION ON DEMAND


select*from NGUOIDOC
select*from MUONSACH
select*from THELOAI
select*from CHITIETMUON

select*from NGUOIDOC

Figure 14 NGUOIDOC Table


select*from MUONSACH

Figure 15 MUONSACH Table

select*from THELOAI

Figure 16 THELOAI Table

select*from CHITIETMUON

Figure 17 CHITIETMUON Table

3.3 CREATE VIEW ALLOW DATA STATISTICS AS REQUIRED


3.3.1 Detailed Statistics View
Command to create view
The tracking view is used to calculate the total number of products sold, total sales,
etc. details of the most borrowed books in the past by code. list (MaTL) to have a
stable direction to avoid library loss.
SELECT dbo.CHITIETMUON.MaMuonSach, dbo.SACH.MSSach,
dbo.MUONSACH.MSthe,dbo.NGUOIDOC.hoten, dbo.NGUOIDOC.tenlop, dbo.SACH.TenSach,
dbo.MUONSACH.ngayTraSach
FROM dbo.SACH INNER JOIN
dbo.SACH AS SACH_1 ON dbo.SACH.MSSach = SACH_1.MSSach CROSS JOIN
dbo.CHITIETMUON INNER JOIN
dbo.MUONSACH ON dbo.CHITIETMUON.MaMuonSach =
dbo.MUONSACH.MaMuonSach CROSS JOIN
dbo.NGUOIDOC

View is creaed:

Figure 18 Detailed Statistics View

3.3.2 See amount of people borrow books


Viewing the amount of people borrowing books at the library will display
information that people have borrowed books. Since then we can manage the
books well when students borrow and help the management will be more gentle
and convenient when more and more people borrow books. Command to create
view
CREATE VIEW NGUOI MUON SACH AS

SELECT dbo.CHITIETMUON.MaMuonSach, dbo.SACH.MSSach, dbo.MUONSACH.MSthe,


dbo.NGUOIDOC.hoten, dbo.NGUOIDOC.tenlop, dbo.SACH.TenSach, dbo.THELOAI.TenTL,
dbo.SACH.SoLuong, dbo.MUONSACH.ViPham, dbo.MUONSACH.ngayTraSach
FROM dbo.THELOAI INNER JOIN
dbo.SACH ON dbo.THELOAI.MaTL = dbo.SACH.MaTL CROSS JOIN
dbo.CHITIETMUON INNER JOIN
dbo.MUONSACH ON dbo.CHITIETMUON.MaMuonSach =
dbo.MUONSACH.MaMuonSach CROSS JOIN
dbo.NGUOIDOC

Figure 19 See details amount of people borrowing books


CHAPTER 4: TEST CASE AND TEST LOG

4.1 TEST CASE


Test What is How Test data used Expected
being Results
tested

1 Order of Enter data into the Data is entered in the There will be
input on table in the table as follows: an error when
data entry following order: TenLop data is entered entering data
in NGUOIDOCtable
screen 1. Nguoidoc into
as follows:
2. MuonSach NGUOIDOC
'T01', 'T02', 'T03', T04
',' T05 '. table because
there is no
data of
TenLop table
yet.

2 Order of Enter data into the Enter data into Data will be
input on table in the NguoiDoc table: entered into
data entry following order: '2', 'Nguyen Van Hieu', the tables and
'T02'.
screen 1. MuonSach there will be
And the data entered
2. NguoiDoc no errors.
in the Muon table is as
follows:
Data '1', '1', '2020-07-
07', '2020-07-020',
'TOT'.

3 Validation Do not enter Do not enter data, An error will


of input borrowed date data leave blank occur if data
into the properties is not entered
of NGUOIDOC into the
tables NgayMuonSa
ch

4 Validation Enter more than 10 Enter data into There will be


of input characters in the MaSoThe attribute in an error
MSthe attribute in NguoiDoc table as
follows:
the NGUOIDOC NGUOIDOC123456 message, No
table data entry

5 Validation Enter MuonSach Enter the data in the Data will be


of input in the attribute NgayMuonSach entered into
ImMon according property as follows: the tables and
to the year / month '2020-07-07'
no errors will
/ day format.
occur

6 Validation Leave the Do not enter data into Do not leave


of input TinhTrangSachMu the SachMuon Crystal blank and an
on attribute blank page attribute in the error message
in the ChiTietNgay Muon appears
ChiTietMuon table panel
7 Validation Enter the same Enter NGUOIDOC Cannot enter
of input data into MSthe table with 2 data lines data because
attribute in the as follows: the primary
'2', 'NguyenVanHieu',
NGUOIDOCtable key is unique
'T02'
'3', 'NguyenAnDien', and an error
'T03' message
appears

8 Validation Enter the Enter the Data entry


of input alphabetic ChiTietMuon table failed and an
character into the with the following error message
data:
RightMuonSach appears
'1','1', '2020-07-07',
property of the
'2020-07-20','ABC'
ChiTietMuon table

9 Validation Enter many types Enter the Sach table Data entry is
of input of books in the with the following successful
MSsach attribute data: and there is
'1', '4'
in the Sachs table no error
message

10 Validation Enter the number 1 Enter the book of the Data entry is
of input into the Mssach spreadsheet and the successful
field in the Book following data: and there is
'1', 'BA02'
list
no error
message

11 Validation Enter TOT on the Enter the Data entry


of input TinhTrangSachMu ChiTietMuon table failed and an
on attribute in the with the following error message
data:
ChiTietMuon table table
'1’,'1', '2020-07-07',
appeared
'2020-07-07','TOT’

4.2 TEST LOG

Test Expected Date Actual results Action


Results taken

1 There will be 22/12 None


an error when /2020
entering data
into the
NGUOIDOC
table because
there is no
data of the
MSthe table
yet

2 Data will be 22/12 OK None


entered into /2020
the tables and
no errors will
occur
3 An error will 22/12 None
occur if data /2020
is not entered
into the
NgayMuonSa
ch attribute

4 Data entry 22/12 None


failed and /2020
will display
an error
message table

5 Data will be 22/12 OK None


entered into /2020
the tables and
no errors will
occur
6 Do not leave 22/12 None
blank because /2020
the field does
not allow null
and an error
message
appears
7 Data cannot 22/12 None
be entered /2020
because the
primary key
is unique and
an error
message
appears

8 Data entry 22/12 None


failed and an /2020
error message
appears

9 Data entry is 22/12 OK None


successful /2020
and there is
no error
message
10 Data entry 22/12 None
failed and an /2020
error message
table
appeared
11 Data entry is 15/8/ OK None
successful 2019
and there is
no error
message

4.2 Technical Document


Introduction:
Here I manage the database for a famous library in Danang city. The library
includes many clients with the number of no less than 50 people per day. The
number of books and staff is also large. Many invoices require a database for easy
and convenient management. Contribute to promoting library economy and the
development of society.
Outlines the ERD:
On this day, a customer can go to the Library and borrow books many times and
have many coupons. Staff can serve multiple times and generate multiple receipts.
Therefore, the relationships between Client and Recipient, between Employee and
Recipient are 1 - n. A De-tail can have multiple products, so the relationship
between Product and Detail is a 1 - n representation. Each item, when purchased
or borrowed, is a value of the Invoice Detail. Therefore, a receipt can also contain
multiple products. Therefore, the relationship between Receipt and Detail is a 1 - n
relationship
Presenting some orientations to increase the applicability of the database:
We will upgrade and maintain monthly for users. To ensure the best user
experience. Provides the user with the functionality needed to manage a database.
Guide users to use the management system, provide documentation regarding
installation and usage.
My system currently has 2 versions:
Version V1.1.0 is the first version of a system installed on 12/8/2020.
Current version V1.1.1 upgrade and fixes bugs of version V1.1.0 updated on
12/14/2020
CONCLUSITION

After learning database database. I already know how to use SQL database
software, know how to deploy commands before creating database tables. I have
written a library management system. Although it is not 100% complete yet, I will
constantly try to improve and improve myself to bring the best quality possible.
In the coming terms, I will do my best at BTEC International College.

You might also like