Docsity

Database Implementation and Testing, Schemes and Mind Maps of Database Programming

Partial preview of the text

Download Database Implementation and Testing and more Schemes and Mind Maps Database Programming in PDF only on Docsity!

Higher Nationals in Computing

Database Design and

Development

ASSIGNMENT

No. 2

Learner’s name: NGUYỄN XUÂN TRƯỜNG

Assessor name: NGUYEN VAN SON

Class: GCS1005A

Learner’s ID: GCS

Subject’s ID: 1622

Assignment due: 21 - 10 - 2022 Assignment submitted: 21 - 10 - 22

ASSIGNMENT 2 FRONT SHEET Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date 21 - 10 - 2022 Date Received 1st submission 21 - 10 - 2022 Re-submission Date Date Received 2nd submission Student Name Nguyễn Xuân Trường Student ID GCS Class GCS1005A Assessor name Nguyễn Văn Sơn 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 Trường Grading grid

P2 P3 P4 P5 M2 M3 M4 M5 D2 D

Assignment Brief 2 (RQF) Higher National Certificate/Diploma in Computing Student Name/ID Number: Nguyễn Xuân Trường-GCS Unit Number and Title: Unit 04: Database Design & Development Academic Year: 2022 Unit Assessor: Nguyen Van Son Assignment Title: Database implementation and Testing Issue Date: 18 Jan. 22 Submission Date: 21 - 10 - 2022 Internal Verifier Name: 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 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 Tutor.
  • The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/.
  • Remember to convert the word file into PDF file before the submission on CMS. Note:
  • The individual Assignment must be your own work, and not copied by or from another student.
  • 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 understand and follow the guidelines to avoid plagiarism. Failure to comply this requirement will result in a failed assignment. 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: Assignment scenario You are employed as a Database Developer for a large IT consultancy company. The company has been approached by FPT Shop which is expanding due to the growth of the number of stores. FPT Shop is currently facing difficulties in dealing with managing the database from all shops on over country. It decided to develop a new database so that: users can register with their phone numbers as IDs and order or rate, comment for their bought devices, shop managers can take care for their stores and director board can view all data from all shops. You are tasked to select one of those systems to develop database for FPT Shop. Your tasks are to:

  • Work with FPT Shop to find out about current requirements for each system
  • Analyse 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: 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: (1) Assessing whether meaningful data has been extracted through the use of query tools to produce appropriate management information. (2) Evaluating the effectiveness of the database solution in relation to user and system requirements, and suggest improvements. (3) 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. (4) 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.

Table of Contents

  • Chapter 3 - Develop the database system................................................................................................................
    • 1.1 Final Mock-up of the application
    • 1.2 Queries to create database with
    • 1.3 Result
  • Chapter 4 – 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
  • Chapter 5 – Test the system
    • 3.1 Test Plan
  • References
  • Figure 1: ER Diagram Table Of Figure
  • Figure 2: Go Database and use for run
  • Figure 3: Create table customer
  • Figure 4: create table Staff
  • Figure 5: Create table Product
  • Figure 6: Create table Bill..............................................................................................................................
  • Figure 7: Create table Bill Detail
  • Figure 8: Create table Feedback
  • Figure 9: Edit Top 200 Rows Customer
  • Figure 10: Edit Top 200 Rows Staff
  • Figure 11: Edit Top 200 Rows Product
  • Figure 12: Edit Top 200 Rows Bill..............................................................................................................
  • Figure 13: Edit Top 200 Rows Bill Detail
  • Figure 14: Edit Top 200 Rows Feedback
  • Figure 15: INSERT data into table Staff
  • Figure 16: INSERT data into table Customer..............................................................................................
  • Figure 17: INSERT data into table Product
  • Figure 18: INSERT data into table Bill
  • Figure 19: INSERT data into table Bill Detail
  • Figure 20: INSERT data into table Feedback
  • Figure 21: UPDATE with Customer, Staff, Feedback, Bill, Bill Detail, Product
  • Figure 22: After change Result update
  • Figure 23: DELETE with customer ID, Customer Address, Staff Address
  • Figure 24: Calculate the lowest total number of Feedback from customers
  • Figure 25: This is the result after testing
  • Figure 26: Total sales of the days the employee sold to the customer and the amount and quantity
  • Figure 27: This is the result after testing
  • amount Figure 28: Total sales of the days the employee sold to the customer and the amount, quantity, and total
  • Figure 29: This is the result after testing
  • amount and total revenue of the company Figure 30: Total sales of the days the employee sold to the customer and the amount, quantity, and total
  • Figure 31: This is the result after testing
  • Figure 32: Total sales of 3 sales staff
  • Figure 33: This is the result after testing
  • Figure 34: Total revenue of customers buying
  • Figure 35: This is the result after testing
  • Figure 36: Calculate the total quantity of each product sold in May 2020..................................................
  • Figure 37: This is the result after testing
  • Figure 38: Find invoices with at least 4 different products
  • Figure 39: This is the result after testing

Figure 4 : create table Staff Figure 5 : Create table Product Figure 6 : Create table Bill Figure 7 : Create table Bill Detail

Figure 8 : Create table Feedback 1.3 Result Customer Figure 9 : Edit Top 200 Rows Customer Staff Figure 10 : Edit Top 200 Rows Staff Product Figure 11 : Edit Top 200 Rows Product

Chapter 4 – Produce queries 2.1 Queries to INSERT data with illustrations of final result Figure 15 : INSERT data into table Staff Figure 16 : INSERT data into table Customer

Figure 17 : INSERT data into table Product Figure 18 : INSERT data into table Bill Figure 19 : INSERT data into table Bill Detail

Figure 22 : After change Result update 2.3 Queries to DELETE data with illustrations of final result Figure 23 : DELETE with customer ID, Customer Address, Staff Address 2.4 Queries to SELECT data with illustrations of final result Figure 24 : Calculate the lowest total number of Feedback from customers

Figure 25 : This is the result after testing Figure 26 : Total sales of the days the employee sold to the customer and the amount and quantity Figure 27 : This is the result after testing

Figure 31 : This is the result after testing Figure 32 : Total sales of 3 sales staff Figure 33 : This is the result after testing

Figure 34 : Total revenue of customers buying Figure 35 : This is the result after testing Figure 36 : Calculate the total quantity of each product sold in May 2020 Figure 37 : This is the result after testing