Docsity

Assignment 2 1622 database - grade(P-M-D), Assignments of Information Technology

Toggle sidebar
bg1
Page 1 of 86
ASSIGNMENT 2 FRONT SHEET
Qualification
TEC Level 5 HND Diploma in Computing
Unit number and title
Unit 04: Database Design & Development
Submission date
04/03/2023
Date Received 1st submission
04/03/2023
Re-submission Date
Date Received 2nd submission
Student Name
Tran Duc Long
Student ID
GCH210562
Class
GCH1106
Assessor name
Dinh Duc Manh
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56

Partial preview of the text

Download Assignment 2 1622 database - grade(P-M-D) and more Assignments Information Technology in PDF only on Docsity!

ASSIGNMENT 2 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and title Unit 04: Database Design & Development

Submission date 04/03/2023 Date Received 1st submission 04/03/

Re-submission Date Date Received 2nd submission

Student Name Tran Duc Long Student ID GCH

Class GCH1106 Assessor name Dinh Duc Manh

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 D

Summative Feedback:Resubmission Feedback:

Grade: Assessor Signature: Date:

Signature & Date:

  • A. Introduction
  • B. Task 1: Develop the database system
    • 1.1 Final Mock-up of the application
    • 1.2 Queries to create database with results
    • 1.3 Database maintenance features and system security
      • a. Maintenance features
      • b. System security
  • C. Task 2: Produce queries
    • 2.1 Queries to INSERT data with illustrations of final result
    • 2.2 Queries to UPDATE data with illustrations of final result
    • 2.3 Queries to DELETE data with illustrations of final result
    • 2.4 Queries to SELECT data with illustrations of final result
    • 2.5 Advanced queries: Stored procedures, triggers, functions
      • a. Stored Procedures
      • b. Triggers.............................................................................................................................................................................................................
      • DML triggers
      • DDL triggers..........................................................................................................................................................................................................
      • c. Functions
    • 2.6 Evaluate the effectiveness of the database solution and improvements
      • a. Effectiveness of database solution
      • b. Improvements
  • D. Task 3: Test the system
    • 3.1 Test cases
      • a. Test plan and test result...................................................................................................................................................................................
      • b. Overall evaluation of testing part.
    • 3.2 Flowchart to show how the system works
      • a. System flowchart..............................................................................................................................................................................................
      • b. Insert information flowchart............................................................................................................................................................................
      • c. Update information flowchart
      • d. Delete information flowchart
    • 3.3. Produce technical and user documentation
      • 3.3.1. Produce technical.......................................................................................................................................................................................
      • a. Introduction
      • b. ERD
      • 3.3.2. User documentation
    • 3.4 Evaluate any future improvements to ensure the continued effectiveness of the database system...............................................................
      • a. Scalability
      • b. Security
      • c. Monitor performance
      • d. Data backup
      • e. User interface and usability
      • f. Integration with other systems....................................................................................................................................................................
  • E. Conclusion
  • Figure 1: Login interface Table of Figures
  • Figure 2: Register interface
  • Figure 3: Main layout
  • Figure 4: Menu of view option
  • Figure 5: View Customer List Layout............................................................................................................................................................................
  • Figure 6: View Staff List Layout
  • Figure 7: View order list layout
  • Figure 8: View Product List Layout...............................................................................................................................................................................
  • Figure 9: Menu of add options.....................................................................................................................................................................................
  • Figure 10: Add new Staff layout
  • Figure 11: Add New Customer Layout
  • Figure 12: Add new Order Layout
  • Figure 13: Add New Product Layout
  • Figure 14: Menu of Update options
  • Figure 15: Update Customer layout
  • Figure 16: Menu of Statistic options
  • Figure 17: Create Database of system
  • Figure 18: Create schemas of system
  • Figure 19: Create Brands table
  • Figure 20: Create Categories table
  • Figure 21: create Products table
  • Figure 22: Create Discounts table
  • Figure 23: Create Customers table
  • Figure 24: Create Staffs table.......................................................................................................................................................................................
  • Figure 25: Create orders table
  • Figure 26: Create OrderItems table
  • Figure 27: Result of creating table
  • Figure 28: Table Brands
  • Figure 29: Table Categories..........................................................................................................................................................................................
  • Figure 30: Table Products
  • Figure 31: Table Discounts
  • Figure 32: Table Customers
  • Figure 33: Table Staffs..................................................................................................................................................................................................
  • Figure 34: Table Orders................................................................................................................................................................................................
  • Figure 35: Table OrderItems
  • Figure 36: Final diagram...............................................................................................................................................................................................
  • Figure 37: Create user login of system and result
  • Figure 38: Queries to create roles Manager and Staff to access
  • Figure 39: Role access of Staff
  • Figure 40: Role access Manager...................................................................................................................................................................................
  • Figure 41: Queries to insert table Brands and result
  • Figure 42: Queries to insert table Categories and result
  • Figure 43: Queries to insert table Products and result
  • Figure 44: Queries to insert table Customer and result
  • Figure 45: Queries to insert table Discount and result
  • Figure 46: Queries to insert table Staffs and result
  • Figure 47: Queries to insert table Orders and result
  • Figure 48: Queries to insert table OrderItems and result............................................................................................................................................
  • Figure 49: Data before update
  • Figure 50: Queries to update data
  • Figure 51: Data after update
  • Figure 52: Data before delete
  • Figure 53: Queries to delete
  • Figure 54: Data after delete
  • Figure 55: Queries to staff's information and result....................................................................................................................................................
  • Figure 56: Queries to Customer's information and result
  • Figure 57: Queries to Order's information and result
  • Figure 58: Queries to all Discount code and result
  • Figure 59: Queries to product's information and result
  • Figure 60: Queries to items of order and result
  • Figure 61: Queries top 5 the good staffs last year and result......................................................................................................................................
  • Figure 62: Queries to top 5 most purchased customer last year and result
  • Figure 63: Queries to top 5 most popular produtcs
  • Figure 64: Create table to contain change customer's information
  • Figure 65: DML trigger to monitor insert, update delete actions of Customer
  • Figure 66: Test and result of DML trigger
  • Figure 67: create table to contain change customer's information
  • Figure 68: create DDL trigger to display in ChangeLogs table
  • Figure 69: Test and result of DDL trigger
  • Figure 70: Create function fn_FindManageInfo to find the number of staffs each manager holds............................................................................
  • Figure 71: Result function
  • Figure 72: Create index to improve system
  • Figure 73: Test index
  • Figure 74: Flowchart of system
  • Figure 75: Flowchart add information in tables...........................................................................................................................................................
  • Figure 76: Flowchart update information in tables
  • Figure 77: Flowchart delete information in tables
  • Figure 78: ER diagram
  • Figure 79: User doc
  • Figure 80: User doc
  • Figure 81: User doc
  • Figure 82: User doc
  • Figure 83: User doc
  • Figure 84: User doc
  • Figure 85: User doc
  • Figure 86: User doc
  • Figure 87: User doc
  • Figure 88: Use firewall to security
  • Figure 89: SQL Server profiler
  • Figure 90: Connect SQL Server Profiler
  • Figure 91: Fill information trace...................................................................................................................................................................................
  • Figure 92: Event trace
  • Figure 93: Back up my data
  • Figure 94: Back up data of this system
  • Figure 95: Connect this database with visual studio
  • Figure 96: Connect data successfully
  • Figure 97: Query data product by C#
  • Figure 98: Result data of product in console application

Figure 1 : Login interface

  • The next is register interface:

Figure 2 : Register interface

  • When the user clicks the view button, the following UI appears. Items related to Staff information, Product

information, Order information, Customer information, and so on will be shown, with users able to inspect

information by clicking on the option.

Figure 4 : Menu of view option

  • When the user selects Customer List, the interface will appear like this. Figure 5 : View Customer List Layout
  • The same is true of the Product List and Order List. By hitting the Back button on each interface, the user will be

able to return to the previous screen.

Figure 7 : View order list layout

Figure 8 : View Product List Layout

  • When the user hits Add Staff, the required information will be displayed. After entering the necessary

information, the user will click the Add button to complete the task.

Figure 10 : Add new Staff layout

  • Customer, Product, Order are all examples of information that may be added Figure 11 : Add New Customer Layout