Professional Documents
Culture Documents
Submission Format:
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
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
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
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
M4 ASSESS THE EFFECTIVENESS OF THE TESTING, INCLUDING AN EXPLANATION OF THE CHOICE OF TEST
DATA USED……………………………………………………………………………………………………………………………………. 17
1.2. Disadvantages…………………………………………………………………………………………………….. 18
2 Suggest Improvements……………………………………………………………………………………………… 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”
6
1.5 Create table Category
7
1.9 Create table Book
8
2. Code Snippets To Insert Some Sample Data For Each Table
2.1 Data for table Staff
9
2.4 Data for table Category
Figure 4 Table of Categagy
10
2.8 Data for table Book
11
3. Generated Database Diagram Of Your Implementation
12
M2 IMPLEMENT A FULLY FUNCTIONAL DATABASE SYSTEM
WHICH INCLUDES SYSTEM SECURITY AND DATABASE
MAINTENANCE.
1. Procedures of SQL
Figure 12 Show Reader
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
14
3 Excute information retrivalstatements
3.1Find special information amount book that reader borrowwed
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.
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
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.
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.
---END---
20