Higher Nationals in Computing: Unit 2: Website Designe and Development
Higher Nationals in Computing: Unit 2: Website Designe and Development
Higher Nationals in Computing: Unit 2: Website Designe and Development
Unit number and title Unit 04: Database Design & Development
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
P2 P3 P4 P5 M2 M3 M4 M5 D2 D3
Summative Feedback: Resubmission Feedback:
Assignment title
Unit Tutor
Submission Format:
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.
Page |1
authorID authorName authorAddress
languageID languageName
Page |2
1.9. Create table Book
Page |3
2. Code snippets to insert some sample data for each table
2.1. Data for table staff
Page |4
Figure 3 Table of Author
Page |5
2.6. Data for table position
Page |6
2.7. Data for table languages
Page |7
Figure 8 Table of Book
Page |8
2.10. Data for table billdetail
Page |9
3. Generated Database Diagram of your Implementation
P a g e | 10
M2 Implement a fully functional database system which includes system security and database
maintenance.
1. Procedures of SQL
use OnlineManagementLibrary
---SHOW READER ---
create procedure Show_Reader
as
begin
select * from Reader
end
exec Show_Reader
exec addcategory
select*from Category
P a g e | 12
Figure 17 Update languages table
P a g e | 14
Figure 22 Find special information in Bill table
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.
• 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;
P a g e | 15
P4 Test the system against user and system requirements.
Test What is being tested How <syntax> Test data used Expected results
Staff ID = 1001
Staff Name = Dang An Thanh
Staff Age = 20
INSERT <table_name> All information are inserted into
1 Input data into Staff Staff Phone = 0918414253
VALUES <values> staff table successfully.
Staff Address = District 10
Staff Account = thanh1001
Staff Pass Word = 0123456789
Reader ID = GCS190644 All information are inserted into
INSERT <table_name> Reader Name = Vu Hoai Thao My reader table successfully.
2 Input data into reader
VALUES <values> Reader Age = 20
Reader Address = District 8
Author ID = 190101
INSERT <table_name> All information are inserted into
3 Input data into author Author Name = Joan M Saslow
VALUES <values> author table successfully.
Author Address = USA
INSERT <table_name> Category ID = 180101 All information are inserted into
4 Input data into category
VALUES <values> Category Name = Text book category table successfully.
Publisher ID = 170101
INSERT <table_name> Publisher Name = Pearson All information are inserted into
5 Input data into publisher
VALUES <values> Education publisher table successfully.
Publisher Address = USA
Position ID = 111
INSERT <table_name> Book Row = A All information are inserted into
6 Input data into position
VALUES <values> Book shelf = 1 position table successfully.
Compartment = 1
INSERT <table_name> Languages ID = 160101 All information are inserted into
7 Input data into languages
VALUES <values> Languages Name = English languages table successfully.
P a g e | 16
Book ID = 1001001
Book Name = Top Notch 1
Author ID = 190101
INSERT <table_name> All information are inserted into
8 Input data into book Category ID = 180101
VALUES <values> book table successfully.
Publisher ID = 170101
Position ID = 111
Languages ID = 160101
Bill ID = 001
Reader ID = GCS190062
INSERT <table_name> All information are inserted into
9 Input data into bill Staff ID = 1001
VALUES <values> bill table successfully.
Borrow date = 2020-10-19
Due date = 2020-10-26
Bill ID = 001
INSERT <table_name> Book ID = 1001001 All information are inserted into
10 Input data into bill detail
VALUES <values> Quantity = 1 bill detail table successfully.
Return Date = 2020-10-20
UPDATE < table_name>
Update data in table staff,
SET < column_name = values> Staff Address = District 8 The text ‘ District 8’ is inserted into
11 column staffAddress at
staff ID = 1001 the row staffID = 1001
the row staffID = 1001 SET < search condition>
Update data in table UPDATE < table_name>
author , column author Author Address = America The text ‘America’ is inserted into
12 SET < column_name = values>
address at the row Author ID = 190101 the row authorID=190101
authorID = 190101 SET < search condition>
Update data in table
UPDATE < table_name>
languages , column
Languages Name = Japanese The text ‘Japanses’ is inserted into
13 languages name at the SET < column_name = values>
Languages ID = 160104 the row languagesID=190104
row languagesID =
SET < search condition>
160104
P a g e | 17
Delete date in table
DELATE FROM < table_name>
languages, column The row which contain
Languages ID = 160104 of
14 langauges name at the [WHERE < search condition>] information of languagesID =
languages table
row languages ID 160105 is deleted
=160104
Delete date in table book DELATE FROM < table_name>
The row which contain
, column bookname at
15 [WHERE < search condition>] Book ID = 1001014 of book table information of bookID=1001014 is
the row book ID
deleted.
=1001014
SELECT
Bill ID
<column_name1>..<column_nameN> Return Date
Find speical information FROM<table_name> Reader Name All of the bill table will be
16
in table bill Staff Name appeared.
GROUP BY <column _name> Book Name
Quantity
SELECT
<column_name1>..<column_nameN>
Find speical amount Reader ID
FROM<table_name> All of information in table will be
17 boook that reader Reader Name
appeared.
borrowed GROUP BY <column _name> Total
P a g e | 18
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
❖ Greater data integrity and independence from applications programsImproved data access to
users through use of host and query languages
1.2. Disadvantages
P a g e | 19
❖ Database systems are complex, difficult, and time-consuming to design
❖ database system
2. Suggest improvements
❖ example, use the SQL Prompt software when using SQL Server to have the
❖ Databases are stored in the cloud, reducing storage in hardware and software
❖ Strengthening the database security. For example, regularly updating developer patches
Software development easier to use and easier to operate
• 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.
P a g e | 20
• SQL server need hard disk space of 8030 MB.
• 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.
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
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
P a g e | 21
REFERENCES
1. Lecture 6 – Physical Design [Online] At available:
https://cms.greenwich.edu.vn/mod/resource/view.php?id=26689 [Accessed 20 Oct. 2020].
P a g e | 22