ASSIGNMENT 2 FRONT SHEET
Qualification TEC Level 5 HND Diploma in Computing
Unit number and title Unit 04: Database Design & Development
Submission date 06-12-2023 Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Nguyen Chi Thanh Student ID BH00887
Class SE06205 Assessor name Nguyen Thanh Trieu
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 thanh
Grading grid
P2 P3 P4 P5 M2 M3 M4 M5 D2 D3
❒ Summative Feedback: ❒ Resubmission Feedback:
Grade: Assessor Signature: Date:
Signature & Date:
Contents
A. Introduction..........................................................................................................................................................................................6
B. Main Body...........................................................................................................................................................................................6
P2, P3 Develop the database system with evidence of user interface, output and data validations, and querying across multiple
tables. Implement a query language into the relational database system................................................................................................6
1. Program introduction:......................................................................................................................................................................6
2. Login function.................................................................................................................................................................................7
3. View function:...............................................................................................................................................................................12
4.Function:.........................................................................................................................................................................................22
P4 Test the system against user and system requirements....................................................................................................................53
1) Test plan........................................................................................................................................................................................53
2) Test case........................................................................................................................................................................................54
P5 Produce technical and user documentation......................................................................................................................................58
C. Conclusion.........................................................................................................................................................................................68
D. References..........................................................................................................................................................................................68
Figure 1:login interface................................................................................................................................................................................7
Figure 2:dât in table users............................................................................................................................................................................7
Figure 3:Users enter usernam and password...............................................................................................................................................8
Figure 4:enter wrong username and password............................................................................................................................................9
Figure 5:notice when enter wrong username and password......................................................................................................................10
Figure 6:login.............................................................................................................................................................................................11
Figure 7:exit...............................................................................................................................................................................................12
Figure 8:admin interface............................................................................................................................................................................13
Figure 9:instructor interface......................................................................................................................................................................14
Figure 10:instructor interface....................................................................................................................................................................15
Figure 11:student interface........................................................................................................................................................................16
Figure 12:student interface........................................................................................................................................................................17
Figure 13:student interface........................................................................................................................................................................18
Figure 14:tabPageGrades...........................................................................................................................................................................19
Figure 15:student display...........................................................................................................................................................................20
Figure 16:query data..................................................................................................................................................................................21
Figure 17:display interview.......................................................................................................................................................................22
Figure 18:function.....................................................................................................................................................................................23
Figure 19:example for add button..............................................................................................................................................................24
Figure 20:example for add button..............................................................................................................................................................25
Figure 21:user don't enterinformation to add display...............................................................................................................................26
Figure 22:insert data..................................................................................................................................................................................27
Figure 23:btn add.......................................................................................................................................................................................28
Figure 24:btn add.......................................................................................................................................................................................29
Figure 25:update display............................................................................................................................................................................30
Figure 26:update button.............................................................................................................................................................................31
Figure 27:query update..............................................................................................................................................................................32
Figure 28:btn update..................................................................................................................................................................................33
Figure 29:btn update..................................................................................................................................................................................34
Figure 30:get data from each column in the lisview and pour it onto the textbox....................................................................................35
Figure 31:delete button..............................................................................................................................................................................36
Figure 32:delete query...............................................................................................................................................................................37
Figure 33:delete button..............................................................................................................................................................................38
Figure 34:course display............................................................................................................................................................................39
Figure 35:add course..................................................................................................................................................................................40
Figure 36:add course..................................................................................................................................................................................41
Figure 37:add course..................................................................................................................................................................................42
Figure 38:form course................................................................................................................................................................................43
Figure 39:add file.......................................................................................................................................................................................44
Figure 40:save successfully.......................................................................................................................................................................45
Figure 41:function add file........................................................................................................................................................................46
Figure 42:grade function............................................................................................................................................................................47
Figure 43:grades........................................................................................................................................................................................48
Figure 44:reset...........................................................................................................................................................................................49
Figure 45:query data..................................................................................................................................................................................50
Figure 46:search button.............................................................................................................................................................................51
Figure 47:reset button................................................................................................................................................................................51
Figure 48:logout.........................................................................................................................................................................................52
Figure 49:login...........................................................................................................................................................................................53
Figure 50:step 1.........................................................................................................................................................................................59
Figure 51:step 2.........................................................................................................................................................................................60
Figure 52:step 3.........................................................................................................................................................................................61
Figure 53:step 4.........................................................................................................................................................................................62
Figure 54:step 5.........................................................................................................................................................................................63
Figure 55:step 6.........................................................................................................................................................................................64
Figure 56:step 7.........................................................................................................................................................................................65
Figure 57:step 8.........................................................................................................................................................................................66
Figure 58:step 9.........................................................................................................................................................................................67
A. Introduction
This report details the design, implementation, and testing of a database system for a company's data management and information
needs. It covers aspects like user interface, output, data validation, querying across tables, query language use, security measures,
and maintenance features. The report showcases a demonstration to the manager, outlines testing with appropriate data, and
provides technical and user documentation with graphical representations. Additionally, it assesses meaningful data extraction,
evaluates system effectiveness, and suggests improvements based on feedback. The goal is to demonstrate a fully functional and
reliable solution meeting the company's requirements.
B. Main Body
P2, P3 Develop the database system with evidence of user interface, output and data
validations, and querying across multiple tables. Implement a query language into
the relational database system
1. Program introduction:
My program is created using Visual Studio software.
The application helps us log in, view, add, edit, delete information, grades, and submit assignments.
The data information in the application is taken from the data table created in asm1
2. Login function
This function will help user can login to this program with username and password from data in “users” table
a) User interface:
This is login interface that users can enter username and password to login
Figure 1:login interface
Figure 2:dât in table users
b) Input, output data and validation:
Figure 3:Users enter usernam and password
If users enter wrong a username or password, there will be a message "Invalid username or password. Please try again.”
Figure 4:enter wrong username and password
Figure 5:notice when enter wrong username and password
c) Querry data:
Code for login function: This is the SQL query for the login function
Figure 6:login
Figure 7:exit
3. View function:
d) Admin interface:
That interface will help user can see program and information this program.
Figure 8:admin interface
Instructor interface:
In this interface the instructor can see the PageInstructor tab but cannot operate it
Figure 9:instructor interface
and the deletion action cannot be performed in the PageStudent tab
Figure 10:instructor interface
Student interface:
In this interface, students can see 2 tabs: Page Student and Instructor but cannot operate them
Figure 11:student interface
Figure 12:student interface
also in PageCourse tab add and delete actions cannot be performed
Figure 13:student interface
tabPageGrades all 3 roles can perform the following operations as an example in the student interface
Figure 14:tabPageGrades
e) Input,output data:
You can see all of these items I will make an example of in the Students section
Figure 15:student display
After press in Students this display will appear and you can see all information of Students table.
f) Query data
Figure 16:query data
display it in listview
Figure 17:display interview
4.Function:
The administration interface has necessary functions to help administrators add, update, and delete information in the table.
Figure 18:function
g) Input, output data and validation:
Figure 19:example for add button
After fill all information and press add button
Figure 20:example for add button
So information you fill will appear in this table and notice” Successfully” will appear.
If users don’t enter information to add display, there will be messaged notice
Figure 21:user don't enterinformation to add display
h) Query data:
Figure 22:insert data
Figure 23:btn add
Figure 24:btn add
Update button: admin can update student information
When clicking on information below the listview, the information will be poured into the textboxes that the admin can edit
directly there
Figure 25:update display
Admin can save after you edit by update button under this table.
Figure 26:update button
i) Query data:
Figure 27:query update
Figure 28:btn update
Figure 29:btn update
Figure 30:get data from each column in the lisview and pour it onto the textbox
Delete button: admin can delete information
After delete this button information in this table will deleted and appear notice “Successfully”.
Figure 31:delete button
j) Query data
Figure 32:delete query
Figure 33:delete button
The next function is to add and delete courses
Figure 34:course display
After entering the course name and clicking add the course will be jumped down into buttons
Figure 35:add course
Figure 36:add course
Below is the code for this part
Figure 37:add course
When clicking on the added course, it will jump to the course form
Figure 38:form course
In this form, students can upload and save assignments
Figure 39:add file
After clicking save, a notification will appear”Save successfully”
Figure 40:save successfully
Below is the code
Figure 41:function add file
And the last function is point lookup:
Figure 42:grade function
Students can look up scores by name or ID
Figure 43:grades
Pressing the reset button will refresh the dgv:
Figure 44:reset
Below is the code:
Figure 45:query data
Figure 46:search button
Figure 47:reset button
Logout button:
You can exit the program by clicking the logout tab and pressing exit
Figure 48:logout
After press logout you will redirect to login page
Figure 49:login
P4 Test the system against user and system requirements.
1) Test plan
In this test plan I will test five functions: Login, Add, Edit, Delete, Log out. I will check all function worked or not.
Test Scenariors Purpose Expected ressults
1 Login function Check Login function can Users can login this
work by get data from database application
2 Add function Check Add function can work Users can add data to the table
and add data to the table in and data add to database
database
3 Edit function Check Edit function can work Users can edit data in the table
and edit data on the table in and data edited in database
database
4 Delete function Check Delete function can Users can delete data in the
work and delete data on the table and data deleted in
table in database database
5 Log out function Check Log out function can Users can logout this
work application
2) Test case
Test Function Cases Content Results
1 Login Login Users can login to this application Successful
function function
can work
by get
data
from
database
2 Login If users There will be a message "Invalid username or password. Please try again." Fail
function enter
wrong
username
or
password
3 Add Add Users can add to this table Successful
function function
can work
and add
data to
the table
in
database
4 Add If users Notice will appear Fail
function don’t fill
data in
add
display
5 Edit Edit Successful
function function
can work
and edit
data on
the table
in
database
6 Delete Delete Successful
function function
can work
and
delete
data on
the table
in
database
7 Log out Log out Successful, Users will redirect to login page Successful
function function
can work
P5 Produce technical and user documentation.
Step 1: login to the application need to login with username and password
Figure 50:step 1
Step 2: After successfully logging in, the application will display the screen showing Students, Instructor, Course, Grades,
Logout
Figure 51:step 2
Step 3: Users can click to each items to interact information each table
Figure 52:step 3
Step 4: Users can use add button to add data to table
Figure 53:step 4
Step 5: Users can use update button to edit data in database
Figure 54:step 5
Step 6: Users can use delete button to delete data in table
Figure 55:step 6
Step 7: Users can post and save assignments
Figure 56:step 7
Step 8: Users can look up points
Figure 57:step 8
Step 9: Users can use sign out button to exit this application
Figure 58:step 9
C. Conclusion
As part of this project, I designed and developed a database system for a company that needed a solution to manage its data and
produces administrative data. I followed and used the user and system requirements given by my teacher demonstrate user interface,
output, data validation and query multiple tables to create a fully functional database system I also implemented a query language for
a relational database system that allows the user to execute complex questions and retrieve relevant information. I presented the
developed system to my supervisor and received feedback its performance and functionality. I assessed whether the survey provided
meaningful information tools and produced relevant management information for the company. I evaluated the efficiency of the
database solution on user and system requirements and suggested improvements for further development. I also tested the system
uses a variety of test data and documents the results and outcomes. My supervisor finished the certification statement show how my
tests meet user and system requirements. I have prepared a short report that gives an estimate testing performance and explained the
choice of test data used. Finally I prepared technical and user Documentation of a fully functional database system, including data
flow diagrams system and flowcharts that describe how the system works. I also gave instructions on how to use the system, how to
use it features, security and maintenance. Technical and user documentation is provided to the company for information and
instructions In short, I successfully implemented the project's objectives and delivered a database solution corresponding to them to
the needs of the company. I have demonstrated my skills and knowledge in design, development, testing and documentation a
database system with various tools and techniques. I also learned from this project experience and reflected on my own strengths and
weaknesses as a database developer. I hope my work will be useful and useful to the company
D. References
Howkteam (n.d.). Khởi tạo Database trong SQL Server | How Kteam. [online] howkteam.vn. Available at:
https://howkteam.vn/course/su-dung-sql-server/khoi-tao-database-trong-sql-server-1363 [Accessed 6 Dec. 2023].
openplanning.net. (n.d.). Kết nối cơ sở dữ liệu SQL Server trong C# | openplanning.net. [online] Available at:
https://openplanning.net/10511/ket-noi-co-so-du-lieu-sql-server-trong-csharp [Accessed 6 Dec. 2023].
TopDev (2021). Tổng hợp những câu lệnh SQL cơ bản. [online] TopDev. Available at: https://topdev.vn/blog/tong-hop-nhung-cau-
lenh-sql-co-ban/ [Accessed 6 Dec. 2023].