You are on page 1of 20

ASSIGNMENT 2 BRIEF

Qualification BTEC Level 5 HND Diploma in Computing

Unit number Unit 04: Database Design & Development

Assignment title Online Library system

Academic Year 2022

Unit Tutor Nguyen Van Son

Issue date Submission date

IV name and date

Submission Format:

Format: This assignment is an Individual assignment and specifically including 2 documents:


(1) sql file of your code and represent your code to your mananger (tutor)
(2) a report document
You must use font Calibri size 12, set number of the pages and use multiple line spacing at
1.3. Margins must be: left: 1.25 cm; right: 1 cm; top: 1 cm and bottom: 1 cm. The reference
follows Harvard referencing system. The recommended word limit is 2.000-2.500 words. You
will not be penalized for exceeding the total word limit. The cover page of the report has to
be the Assignment front sheet 2.
Submission Students are compulsory to submit the assignment in due date and in a way requested by the
Tutors. The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/
Note: The Assignment must be your own work, and not copied by or from another student or from
books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you
must reference your sources, using the Harvard style. Make sure that you know how to reference properly,
and that understand the guidelines on plagiarism. If you do not, you definitely get fail

Unit Learning Outcomes:

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

Assignment Brief and Guidance:

1
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 2 (Assignment 2)
Once the designs have been accepted by your manager you have been asked to:
1. Develop the database system using evidence of user interface, output and data validations and
querying across multiple tables.
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.
You have decided to implement a query language into the relational database system. The developed
system will be demonstrated to your manager.
Your manager has asked you to include in the report:
2. Assessing whether meaningful data has been extracted through the use of query tools to produce
appropriate management information.
3. Evaluating the effectiveness of the database solution in relation to user and system requirements,
and suggest improvements.
4. 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.
You will produce a brief report assessing the effectiveness of the testing, including an explanation of the
choice of test data used.
5. 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.

2
Learning Outcomes and Assessment Criteria

Pass Merit Distinction

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 system M2 Implement a fully functional LO2 & 3


with evidence of user interface, database system which includes system D2 Evaluate the effectiveness of the
output and data validations, and security and database maintenance. database solution in relation to user
querying across multiple tables. and system requirements, and suggest
M3 Assess whether meaningful data improvements.
P3 Implement a query language has been extracted through the use of
into the relational database system. query tools to produce appropriate
management information.

P4 Test the system against user and M4 Assess the effectiveness of the
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 improvements that
documentation. documentation for a fully functional may be required to ensure the continued
system, including ER Diagram and effectiveness of the database system.
normalization statements and
describing how the system works.

3
TABLE OF CONTENTS

P2 DEVELOP THE DATABASE SYSTEM WITH EVIDENCE OF USER INTERFACE, OUTPUT AND DATA
VALIDATIONS, AND QUERYING ACROSS MULTIPLE TABLES. ……………………………………………………….. 6
1 Code Snippets To Create Each Table……………………………………………………………………………… 6
1.1 Create database “NamAsm2” …………………………………………………………………………… 6
1.2 Create table Staff ……………………………………………………………………………………………… 6
1.3 Create table Reader…………………………………………………………………………………………… 6
1.4 Create table Author…………………………………………………………………………………………… 6
1.5 Create table Category………………………………………………………………………………………… 7
1.6 Create table Publisher……………………………………………………………………………………….. 7
1.7 Create table Position………………………………………………………………………………………….. 7
1.8 Create table Languages………………………………………………………………………………………. 7
1.9 Create table Book………………………………………………………………………………………………. 8
1.10 Create table Bill……………………………………………………………………………………………….. 8
1.11 Create table Bill Detail……………………………………………………………………………………… 8
2 Code Snippets To Insert Some Sample Data For Each Table……………………………………… 9
2.1 Data for table Staff……………………………………………………………………………………………. 9
2.2 Data for table Reader………………………………………………………………………………………… 9
2.3 Data for table Author………………………………………………………………………………………… 9
2.4 Data for table Category……………………………………………………………………………………… 10
2.5 Data for table Publisher…………………………………………………………………………………….. 10
2.6 Data for table Position……………………………………………………………………………………… 10
2.7 Data for table Languages………………………………………………………………………………….. 10
2.8 Data for table Book…………………………………………………………………………………………… 11
2.9 Data for table Bill……………………………………………………………………………………………… 11
2.10 Data for table Bill Detail…………………………………………………………………………………… 11
3 Generated Database Diagram Of Your Implementation…………………………………………. 12
M2 IMPLEMENT A FULLY FUNCTIONAL DATABASE SYSTEM WHICH INCLUDES SYSTEM SECURITY AND
DATABASE MAINTENANCE……………………………………………………………………………………………………………. 13
1 Procedures of SQL……………………………………………………………………………………………………. 13
P3 IMPLEMENT A QUERY LANGUAGE INTO THE RELATIONAL DATABASE SYSTEM…………………………. 14
1 Code snippets to update some sample data for each table………………………………………. 14
1.1 Updata Staff table……………………………………………………………………………………………….. 14
1.2 Updata Author table……………………………………………………………………………………………. 14
1.3 Code Snippets to delete some sample data for each table…………………………………… 14
2 Delete Language table……………………………………………………………………………………………. 14

4
2.1 Excute information retrivalstatements………………………………………………………………… 14
3 Find special information amount book that reader borrowwed……………………………….. 15
M3 ASSESS WHETHER MEANINGFUL DATA HAS BEEN EXTRACTED THROUGH THE USE OF QUERY TOOLS
TO PRODUCE APPROPRIATE MANAGEMENT INFORMATION. ………………………………………………………… 15

P4 TEST THE SYSTEM AGAINST USER AND SYSTEM REQUIREMENTS………………………………………………. 16

M4 ASSESS THE EFFECTIVENESS OF THE TESTING, INCLUDING AN EXPLANATION OF THE CHOICE OF TEST
DATA USED……………………………………………………………………………………………………………………………………. 17

1 Database-Advantages And Disadvantages ……………………………………………………………….. 17

1.1 Advantages …………………………………………………………………………………………………………. 17

1.2. Disadvantages…………………………………………………………………………………………………….. 18

2 Suggest Improvements……………………………………………………………………………………………… 18

P5 PRODUCE TECHNICAL AND USER DOCUMENTATION. …………………………………………………………………. 18

1. Hardware requirement: ……………………………………………………………………………………………. 18


2. Software requirement: ……………………………………………………………………………………………… 18
3. Instruction for technical users:………………………………………………………………………………….. 18

3.1. Connect to a SQL Server instance ……………………………………………………………………….. 18

M5 PRODUCE TECHNICAL AND USER DOCUMENTATION FOR A FULLY FUNCTIONAL SYSTEM, INCLUDING
ER DIAGRAM AND NORMALIZATION STATEMENTS AND DESCRIBING HOW THE SYSTEM WORKS……… 19

D3 ASSESS ANY FUTURE IMPROVEMENTS THAT MAY BE REQUIRED TO ENSURE THE CONTINUED
EFFECTIVENESS OF THE DATABASE SYSTEM………………………………………………………………………………………. 19

REFERENCES………………………………………………………………………………………………. 20

5
ASSIGNMENT 2 ANSWERS
P2 DEVELOP THE DATABASE SYSTEM WITH EVIDENCE OF USER
INTERFACE, OUTPUT AND DATA VALIDATIONS, AND QUERYING
ACROSS MULTIPLE TABLES.
1. Code Snippets To Create Each Table
1.1 Create database “NamAsm2”

1.2 Create table staff

1.3 Create table reader

1.4 Create table Author

6
1.5 Create table Category

1.6 Create table Publisher

1.7 Create table Position

1.8 Create table Languages

7
1.9 Create table Book

1.10 Create table Bill

1.11 Create table Bill Detail

8
2. Code Snippets To Insert Some Sample Data For Each Table
2.1 Data for table Staff

Figure 1 Table of Staff

2.2 Data for Reader

Figure 2 Table of Reader

2.3 Data for table Author


Figure 3 Table of Author

9
2.4 Data for table Category
Figure 4 Table of Categagy

2.5 Data for table Publisher


Figure 5
Table of Publisher

2.6 Data for table Position

Figure 6 Table of Position

2.7 Data for table languages


Figure 7 Table of Languages

10
2.8 Data for table Book

Figure 8 Table of Book

2.9 Data for table Bill

Figure 9 Table of Bill

2.10 Data for table Billdetail


Figure 10 Table of Billdetail

11
3. Generated Database Diagram Of Your Implementation

Figure 11 Database Diagr

12
M2 IMPLEMENT A FULLY FUNCTIONAL DATABASE SYSTEM
WHICH INCLUDES SYSTEM SECURITY AND DATABASE
MAINTENANCE.
1. Procedures of SQL
Figure 12 Show Reader

Figure 13 Add Category

Figure 14 Add Staff

13
P3 IMPLEMENT A QUERY LANGUAGE INTO THE
RELATIONAL DATABASE SYSTEM
1 Code snippets to update some sample data for each table
1.1Updata Staff table

Figure 15 Updata Staff table

1.2Updata Author table


Figure 16 Updata Author table

1.3Updata Languages table


Figure 15 Updata Languages table

2 Code Snippets to delete some sample data for each table


2.1Delete Language table
Figure 18 Delete Languages table

14
3 Excute information retrivalstatements
3.1Find special information amount book that reader borrowwed

Figure 19 Find special information


amount book that reader borrowwed

M3 ASSESS WHETHER MEANINGFUL DATA HAS BEEN EXTRACTED THROUGH


THE USE OF QUERY TOOLS TO PRODUCE APPROPRIATE MANAGEMENT
INFORMATION.
- They help us to access local as well as remote data easily.
- They have integrated-robust report writing feature.
- Most of the query tools are built upon client-server architecture, so provide complete client server support.
- SQL Server is more robust query tool than SQL for MS Access.
- Oracle as a query tool is bulky and mostly useful for large databases;
- Therefore SQL Server is more preferable and most widely used

15
-
P4 TEST THE SYSTEM AGAINST USER AND SYSTEM
REQUIREMENTS.
Test What is being How <syntax> Test data used Expected results
tested
1 Input data into INSERT <table_name> staffID = 102 staffName All information are
Staff VALUES <values> = Huynh Khanh staffPhone inserted into Staff table
= 0987654321 staffAddress successfully.
= District 1 staffAccount
= Khanh102 staffPassword =
12341234
2 Input data into INSERT <table_name> ReaderID = GCS190644 All information are
Reader VALUES <values> ReaderName= Vu Hoai Thao My inserted into Reader table
ReaderAge = 20 successfully.
ReaderAddress = District 8
3 Input data into INSERT <table_name> AuthorID = 0001 All information are
Author VALUES <values> AuthorName= Mat biec inserted into Author table
AuthorAddress= VN successfully
4 Input data into INSERT <table_name> CategoryID = 9992 All information are
Categogy VALUES <values> CategoryName = Horror inserted into Categogy
table successfully.
5 Input data into INSERT <table_name> PublisherID= 3134 All information are
Publisher VALUES <values> PublisherName= Kim Dong inserted into Publiosher
PublisherAddress = VN table successfully.
6 Input data into INSERT <table_name> PositionID= 123 All information are
Position VALUES <values> BookRow = A inserted into Position table
Bookshelf = 1 successfully.
Compartment = 1
7 Input data into INSERT <table_name> LanguagesID = 1223 All information are
Languages VALUES <values> LanguagesName = Vietnamese inserted into Languages
table successfully.
…… ….. … … …

16
M4 ASSESS THE EFFECTIVENESS OF THE TESTING, INCLUDING AN EXPLANATION
OF THE CHOICE OF TEST DATA USED.
- My testing aims to ensure that the basic information needed will be in the tables and the
tables will be bound together. The effect of my testing can be a lot of bugs and not perfect,
however I think some will be good over the time in development, maintenanceand and storing
data. My tests are all very good and it has no underlying errors. So I don't have to fix or change
anything for my coding.
- In the case of testing, I performed the necessary basic tests, in which I did things like insert,
update, delete, select. I used my data to perform tests, because I wanted to make sure my
data was working properly.
- I will explain every possible syntax. The insert syntax is used to insert information into tables.
The update syntax is used to edit information and update the new information you want. The
syntax delete is used to delete unnecessary information. The syntax select is implemented to
display the information saved in the tables
- The relationship between the tables is necessary, so I need to check that it works and is right.
If you want to insert data into a foreign key, you must have the foreign key in the table and
the relationship containing the foreign key. Just like deleting needs to be deleted in a table
with a reference first.
- Through the guidance of the teachers and researching on the internet, I have designed a
complete database for this report. I think it is not the perfect or the best design, but I think it
has met the basic requirements of a database system. It works well and there are no basic
errors about insert, update, delete, select in my testing
D2 Evaluate the effectiveness of the database solution in relation to user and system
requirements, and suggest improvements.

1. Database-Advantages And Disadvantages


1.1. Advantages
- Reduced data redundancy
- Reduced updating errors and increased consistency
- Greater data integrity and independence from applications programslmproved data access to
users through use of host and query languages
- Improved data security
- Reduced data entry, storage, and retrieval costs
- Facilitated development of new applications program

17
1.2. Disadvantages
- Database systems are complex, difficult, and time-consuming to design
- Substantial hardware and software start-up costs
- Damage to database affects virtually all applications programs
- Extensive conversion costs in moving form a file-based system to a database system
- Initial training required for all programmers and users
2. Suggest Improvements
- Use of supporting software when using database development software.
- For example, use the SQL Prompt software when using SQL Server to have the code show
automatically
- Databases are stored in the cloud, reducing storage in hardware and software
- Sharing the cost of using the software
- Strengthening the database security. For example, regularly updating developer patches
Software development easier to use and easier to operate

P5 PRODUCE TECHNICAL AND USER DOCUMENTATION.

1. Hardware requirement:
- Minimum of 6 GB of available hard-disk space.
- Super-VGA (800x600) or higher resolution monitor.
- CPU core i5, 2.0GHz, RAM 4GB, HDD/SSD 256GB...
- Clocks peed of 2 GHz or more. 1.4 GHz minimum.
- 64 bit x64-compatible AMD or Intel CPU only.
2. Software requirement:
- Visual studio 2017 for design UI or/ HTML, CSS for design UI.
- SQL server core engine is 64-bit only and does not support the 32-bit editions of windows 8
or window 10.
- SQL server need hard disk space of 8030 MB.
- Microsoft SQL Server 2017.
3. Instruction for technical users:
3.1. Connect to a SQL Server instance
- To connect to the SQL Server using the Microsoft SQL Server Management Studio, you use these
steps:
- First, launch the Microsoft SQL Server Management Studio from the Start menu:
- Next, from the Connect menu under the Object Explorer, choose the Database Engine...
- Then, enter the information for the Server name (localhost), Authentication (SQL Server
Authentication), and password for the sa user and click the Connect button to connect to the
SQL Server.

18
M5 PRODUCE TECHNICAL AND USER DOCUMENTATION FOR A FULLY
FUNCTIONAL SYSTEM, INCLUDING ER DIAGRAM AND NORMALIZATION
STATEMENTS AND DESCRIBING HOW THE SYSTEM WORKS.
- Passed the test in P4, It has sovled the basics of Online Management Library, but there is one
shortcoming that readers had not found the list of readers who have not return the book.

D3 ASSESS ANY FUTURE IMPROVEMENTS THAT MAY BE REQUIRED TO ENSURE


THE CONTINUED EFFECTIVENESS OF THE DATABASE SYSTEM.
- In the future, it is necessary to futher improve the discovery of the list readers who have not
returned book. So staff can know that book not yet paid and it is past the deadline? statistics
can be strictly controlled

19
REFERENCES
1. Lecture 6,7,8,9,10,11,12,13,14,15 (Toppic1): https://cms.greenwich.edu.vn/course/view.php?id=4559.

2. WIKIPEDIA. Data retention [Online] At available: https://en.wikipedia.org/wiki/Data_retention

3. I used Microsoft.Securing SQL server software to do this work

---END---

20

You might also like