Docsity

Assignment 1 Database design and development(PASS), Assignments of Database Management Systems (DBMS)

Toggle sidebar
bg1
Higher Nationals in Computing
Database Design and
Development
ASSIGNMENT
No.1
Learner’s name: TRAN VU ANH MINH
Assessor name: NGUYEN VAN SON
Class: GCS1004B
Learner’s ID: GCS210898
Subject’s ID: GCS1004B (1622)
Assignment due: 12th October 2022
Assignment submitted:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Assignment 1 Database design and development(PASS) and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

Higher Nationals in Computing

Database Design and

Development

ASSIGNMENT

No. 1

Learner’s name: TRAN VU ANH MINH

Assessor name: NGUYEN VAN SON

Class: GCS1004B

Learner’s ID: GCS

Subject’s ID: GCS1004B (1622)

Assignment due: 12

th

October 2022

Assignment submitted:

ASSIGNMENT 1 FRONT SHEET Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date 12 th^ October 2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Tran Vu Anh Minh Student ID GCS Class GCS1104B Assessor name Nguyen Van Son 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 Minh Grading grid P1 M1 D ❒ Summative Feedback: ❒ Resubmission Feedback: Grade: Assessor Signature: Date: Lecturer Signature:

Assignment Brief and Guidance: 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 1 (Assignment 1) Before you start the development process, your manager has asked you to produce a report for the CEO of FPT, containing:
  1. Clear statements of user and system requirements. The system must have at least 3 user roles, including business processes and statistical reports for FPT Shop managers.
  2. The design of the relational database system using appropriate design tools and techniques. It should contain at least four interrelated tables. You would prefer to produce a more detailed document, so you will produce a comprehensive design for a fully functional system which will include interface and output designs, data validations and cover data normalization. Your manager would like on the report your assessment of the effectiveness of the design in relation to user and system requirements. Learning Outcomes and Assessment Criteria (Assignment 1): Learning Outcome Pass Merit Distinction LO1 P1 Design a relational database system using appropriate design tools and techniques, containing at least four interrelated tables, with clear statements of user and system requirements. M1 Produce a comprehensive design for a fully functional system which includes interface and output designs, data validations and data normalisation. D1 Assess the effectiveness of the design in relation to user and system requirements.

Table of Contents

  • Assignment Brief 1 (RQF)
    • Higher National Certificate/Diploma in Computing
    1. Chapter 1 - Statements of user and system requirements
    • 1.1 Overview of the Problem
      • 1.1.1 Introduction
      • 1.1.2 Overview
    • 1.2 Requirements of the application
    1. Chapter 2 – Design the relational database system...............................................................................................
    • 2.1 Analyze the requirements
    • 2.2 Database design with explanations
      • 2.2.1 Relation.................................................................................................................................................
      • 2.2.2 Logical design (ERD)
      • 2.2.4 Explanation 2.2.3 Physical design Error! Bookmark not defined.
  • REFERENCES
  • Figure 1: Connection between the Managers table and the Bill table
  • Figure 2: Connection between the Customer table and the Bill table
  • Figure 3: Connection between the Evaluate table and the Customer table...................................................................
  • Figure 4: Connection between the Device table and the Evaluate table
  • Figure 5: Connection between the Device table and the Category table
  • Figure 6: Connection between the Device table and the BillDetail table
  • Figure 7: Connection between the Device table and the BillDetail table

2. Chapter 2 – Design the relational database system 2.1 Analyze the requirements

  • Work with FPT to find out about the current requirements for each system. To manage the information on their managers and employees, the directors of the FPT stores desire a database management system. The information about the customer, their order, and their assessment of the purchased device is what the directors are interested in learning.
  • Analyze the requirements and produce clear statements of user and system requirements. If the requirements exist, I will create a database so they may complete all of the work they need to.
  • Design a relational database system using appropriate design tools and techniques. First, I will show my design in an easiest way so that they can understand what I am doing with the logical design. After that I will reveal the design in detail using tables so they can know what will be included in the database.
  • Develop a fully functional relational database system, based on an existing system design. On the basis of the comprehensive tables I presented to the director, I will build a database. All the components needed for a flawless management system will be in the database.
  • Test the system against user and system requirements. In order to double-check for errors before handing the system to the director, I will retest it by entering user information into the system.
  • Produce technical and user documentation. Last but not least, I will present my accomplishment to the director of the FPT shops, who will assess and provide feedback so I can improve my system. 2.2 Database design with explanations 2.2.1 Relation Different types of data sets are gathered in relational databases using tables, records, and columns. In order to make relational databases easier to store, it is used to establish a clear relationship between database tables. Take relational databases like Microsoft SQL Server, Oracle Database, MYSQL, etc. as an example. There are three different relationships in database:
  1. One to One relationship
  2. One to many or many to one relationship
  3. Many to many relationships In my database I will use a lot of one to many relationship. One to Many relationship: It is used to create a relationship between two tables. Any single rows of the first table can be related to one or more rows of the second tables, but the rows of second tables can only relate to the only row in the first table. It is also known as a many to one relationship.

Relationship between Managers table and Bill table: a partnership with a lot of possibilities since one manager can control every information about devices that have been sold through managerID in bill table. Figure 1 : Connection between the Managers table and the Bill table Relationship between Customer table and Bill table: a partnership with a lot of possibilities since the customer can have a piece of full information about their devices and the time that device has been sold for them and more information about who is in charge of the shop through customerID in the table. Figure 2 : Connection between the Customer table and the Bill table Relationship between Customer table and Evaluate table: a relationship with many options because one comment or rate belongs to a single user, and a user might have many comments and rates and each of that can control through customerID in evaluate table. Figure 3 : Connection between the Evaluate table and the Customer table

Relationship between Bill table and BillDetail table: a partnership with a lot of possibilities since the bill detail can assist clients in keeping track of the device they add to their shopping carts so they can total their purchases before placing an order. Figure 7 : Connection between the Device table and the BillDetail table 2.2.2 Logical design (ERD) The human resource management system entity model is represented by the entity-relationship (ER) diagram. The human resource management system's entity-relationship diagram displays every visual component of database tables as well as the relationships between directors, managers, customers, devices, etc. It employed structured data to define the linkages between structured data groups of the functionality of the human resource management system. Director, manager, customer, device, order, bill, evaluate, category and bill detail make up the system's key constituents.

  • Human Resource Management System entities and their attributes: o Manager entity: Attributes of the manager are manager_id, manager_name, manager_phone, and customer_id. o Customer entity: Attributes of the customer are customer_id, customer_name, and customer_address. o Order entity: Attributes of the order are order_id, customer_id, device_id, and created_date. o Evaluate entity: Attributes of evaluation are device_id, customer_id, rate, and comment. o Device entity: Attributes of the device are device_id, device_name, category_id, and price. o Category entity: Attributes of the category are category_id, and name.

Logical design Figure 8 : Logical Design This section describes the nine tables that are linked to our project. These nine tables are described in the following point. o Manager o Customer o Device o Category o Evaluate o Bill o BillDetail

2.2.2.5 Evaluate The table evaluate stores all the comments and rates which are added by customers. All the comments and rates, which are controlled by the managers and directors will be saved in this table. Field name Data type Allow Nulls Description deviceID Varchar(10) Device code, foreign key customerID Varchar(1 5 ) Customer code, Foreign key Rate Int Rating of the device Comment Nvarchar(999) Comment of the device 2.2.2.6 Bill The table bill stores bills which are added by the system. All of these data will be in this table. Field name Data type Allow Nulls Description billID Varchar(10) Bill code, Primary key billDate Date Bill date customerID Varchar(15) Customer code, Foreign key managerID Varchar(10) Manager code, Foreign key 2.2.2.7 BillDetail The table BillDetail stores details about the bills which are added by the system. All of these bill details will be in this table. Field name Data type Allow Nulls Description billID Varchar(10) Bill code, foreign key deviceID Varchar(10) Device code, foreign key Quantity Int Quantity of bills 2.2.3 Explanation Directors and managers may govern their employees' behaviour and how customers comment about their products by using the table I built, which includes information on directors, managers, and customers as well as information on gadgets and customer reviews.

REFERENCES En.wikipedia.org. 2022. FPT Group - Wikipedia. [online] Available at: [Accessed 10 October 2022]. Chai, W. and Sutner, S., n.d. What is Human Resource Management (HRM)? - Definition from WhatIs.com. [online] SearchHRSoftware. Available at: [Accessed 10 October 2022]. Tutorialspoint.com. n.d. SQL Tutorial. [online] Available at: [Accessed 10 October 2022]. W3schools.com. n.d. SQL Tutorial. [online] Available at: [Accessed 10 October 2022]. www.javatpoint.com. n.d. Types of Relationship in Database Table - javatpoint. [online] Available at: [Accessed 12 October 2022].