Docsity

Creating Database design, Study Guides, Projects, Research of Information Technology

Partial preview of the text

Download Creating Database design and more Study Guides, Projects, Research Information Technology in PDF only on Docsity!

Higher Nationals in Computing

Database Design and

Development

ASSIGNMENT

No.

Learner’s name:

Assessor name:

Class:

Learner’s ID:

Subject’s ID:

Assignment due: 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 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Student ID Class Assessor name 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 Khang Grading grid P1 M1 D

 Summative Feedback:  Resubmission Feedback: \

Grade: Assessor Signature: Date: Lecturer Signature:

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)........................................................................................................................................... 2 Higher National Certificate/Diploma in Computing................................................................................................ 2 Introduction................................................................................................................................................................. 5

  • Chapter 1 – Statements of user and system requirement..........................................................................................
  • 1.1. Overview about the problem............................................................................................................................
  • 1.2. Requirements of the application........................................................................................................................
  • Chapter 2 – Design the relational database system..................................................................................................
  • 2.1. Analyze the requirement..................................................................................................................................
  • 2.2. Database design with explanation....................................................................................................................
  • 2.3. Review whether the database is normalized...................................................................................................
  • Reference...............................................................................................................................................................

Create a relational database system that is completely functioning based on the system architecture already in place. Analyze the system's performance in light of user and system requirements. My system will have three main roles in this program:

  • Manager: The catalog is available to all managers, and the may use it to check out, reserve, and renew their products. They also can check information about their staff and customer.
  • Customer: Customers may learn more about the product's specifications, and the system will record their data when they make a purchase and generate bills for them.
  • Product: The program will manage the product's quantity and cost. Functionalities:
  • Add, remove, edit information about products and customer.
  • Search the product by name and ID.
  • Create an account or cancel membership.

Chapter 2 – Design the relational database system

2.1. Analyze the requirement In any FPT shop the user should be able to search for products by name, product ID, and publication date. Each product will have unique identification number as well as other information such as export and production places. Customers can look up the number of products and the nearest place to be able to buy that product. Information about the consumer and the goods they purchased should be retrievable by the system. 2.2. Database design with explanation

  • Logical design

Figure 2 : Logical design (ERD)

  • Physical design Table: Customer Column name (Field Name) Data type Allow nulls Description CustomerID Char(15) no Customer code, primary key CustomerName Varchar(50) yes Full name of customer CustomerPhoneNumber int yes Phone number of customers CustomerAddress Varchar(50) yes Address information of customer Figure 3 : Customer table This table is used to store information about the customer  Customer ID (PK): this is the primary key of the table to ensure that each customer has a unique ID and doesn’t duplicate.  Customer Name: Save the name of the customer.  Customer Phone Number: Save the phone number of customers.

Table: Product Column name (Field Name) Data type Allow nulls Description ProductID Char(15) no Product code, primary key ProductName Varchar(50) yes Name of the product Unit float yes Unit of the product Price int yes Price of the product Figure 7 : Product table This table is used to store information about the product.  Product ID (PK): This is the primary key of the table to make sure that each product has a unique and not duplicate ID.  Product Name: Save the name of the product.  Unit: Measurement of the product.  Price: The cost of the product. Table: Shop Column name (Field Name) Data type Allow nulls Description ShopID Char(15) no Shop code, primary key ManagerID Varchar(50) yes Manager code, foreign key ShopAddress Varchar(50) yes Address of the shop ShopPhoneNumber int yes Phone number of the shop Figure 8 : Shop table This table is used to store information about the shop.  Shop ID (PK): This is the primary key of the table to ensure that each shop has only one unique ID and no duplicates.  Manager ID (FK): This is the foreign key that refers to the manager table. That shows the manager information.  Shop address: Address of the shop.  Shop phone number: Phone number of the shop. Table: Manager Column name (Field Name) Data type Allow nulls Description ManagerID Char(15) no Manager code DirectorID Char(15) yes Director code, foreign key ManagerName Varchar(50) yes Full name of manager ManagerPhoneNumber int yes Phone number of manager ManagerAddress Varchar(50) yes Address information of manager Figure 9 : Manager table This table is used to store information about the manager.  Manager ID (PK): This is the primary key of the table to make sure that each manager has only one unique ID and no duplicates.  Director ID (FK): This is the foreign key that refers to the Director table. That shows the director information.  Manager Name: Save the name of the manager.  Manager phone number: Save the phone number of the manager.  Manager address: Save the address of the manager.

Table: Director board Column name (Field Name) Data type Allow nulls Description DirectorID Char(15) no Director code DirectorName Varchar(50) yes Full name of director DirectorPhoneNumber int yes Phone number of director DirectorAddress Varchar(50) yes Address information of Director Figure 10 : Director board table This table is used to store information about the director.  Director ID (PK): This is the primary key of the table to make sure that each director has a distinct ID and doesn’t have a duplicate.  Director name: Save the name of the director.  Director phone number: Save the phone number of the director.  Director address: Save the address of the director.  Relationship explanation. Relationship between customer table and bill table Figure 11 : Relationship between customer table and bill table This two table are linked by Customer ID. Each customer can have many bills. => One to many relationship.

Relationship between Product table and Bill Detail table Figure 14 : Relationship between Product table and Bill Detail table This two table are linked by Product ID. The manager will be aware of how many items are included in each shipment, as well as their price and expected sales volume. => one to many relationship.

Relationship between Shop table and Bill table Figure 15 : Relationship between Shop table and Bill table This two table are linked by Shop ID. Customers will find out which products they buy and sell in the neighborhood from their bill. => one to many relationship. Relationship between Manager table and Shop table Figure 16 : Relationship between Manager table and Shop table

Retrieved October 12, 2022, from https://www.guru99.com/database-normalization.html