






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An assignment for a tec level 5 hnd diploma in computing, focusing on unit 04: database design & development. The student, working at fpt corporation, was tasked with upgrading and developing the database system for fpt shop due to its expansion. The assignment includes analyzing requirements, designing a relational database system, and validating data. The design includes 9 tables and 8 entities with various relationships, such as one-to-one, one-to-many, and many-to-many. A detailed erd diagram and data validation rules for each table.
Typology: Exercises
1 / 10
This page cannot be seen from the preview
Don't miss anything!







P1 M1 D
❒ Summative Feedback: ❒ Resubmission Feedback:
As a data developer working at FPT Corporation, I was assigned the project of upgrading and developing the database system for FPT shop because the company is currently expanding its development and database system. Are you experiencing some difficulties in using and managing... During the meeting we decided to develop a new database so that: users can register using their phone number as ID and order or rate, comment on purchased equipment, store managers can take care of their stores, and management can view all data from all stores.
1.2. Application requirements Reason: FPT Shop is expanding its scale due to the increase in the number of stores. FPT Shop is currently having difficulty managing the database from all stores nationwide. Requirements: The database must be easy to use, store, manage and update. The database must also be easily accessible. Objective: The database should include features such as Create/Read/Update/Delete (CRUD). Scope (Goal to achieve): Set up the system so that data can be stored in a certain structure with high consistency. Helps stores conveniently create, store, search and use data accurately and quickly. Role: Directors: can log in to view all product information, reviews, customers, managers, and employees to be able to grasp the situation as well as manage subordinates more easily. Can add managers, employees as well as delete. Manager: who can view information about customers, products, product quantities, prices, employees, can only add or remove necessary information such as employees and products. Customers: everyone buys products and experiences services, information is stored in the system, after purchasing, customers can leave a review for the product.
Staff: who advise customers to buy and choose products, creators who enter, delete, and add customer information and the products they buy into the system.
Based on the system's requirements, I have designed a database with 4 user roles including: senior officer (director), manager, employee and user. In this database design, there are 9 tables with different contents to meet the assigned requirements. 9 tables include: Shop, Product, Oder, OderDetail, Director, Manager, Staff, Customer and Feedback table.
B. Explanation. My ERD diagram have 8 tables. The OrderDetail Table is a connection table between the Oder and Product tables. This table includes order information such as order code, product code, order quantity and total order price. My EDR have 3 types relasionship:
Table Attributes Data types Null PK,FK Format/Constrains/Domain value Shop ShopID INT Not Null PK ID of Shop ManagerID INT ID of manager ShopName VARCHAR(255) Name of shop ShopAddress VARCHAR(255) Address of shop Product ProductID INT Not Null PK ID of product ShopID INT ID of shop ProductName VARCHAR(255) Name of product ProductDetail VARCHAR(255) Detail of product ProductPrice DECIMAL(10,2) Price of product Staff StaffID INT Not Null PK ID of Staff ShopID INT FK ID of Shop StaffName VARCHAR(255) Name of staff StaffPhoneNo VARCHAR(255) 0xxxxxxxxx StaffAdress VARCHAR(255) Adress of staff Manager ManagerID INT PK ID of manager ManagerName VARCHAR(255) Name of manager ManagerPhoneNo VARCHAR(255) 0xxxxxxxxx
There are no sources in the current document.