









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










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
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:
Assignment Brief 1 (RQF)........................................................................................................................................... 2 Higher National Certificate/Diploma in Computing................................................................................................ 2 Introduction................................................................................................................................................................. 5
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:
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
Figure 2 : Logical design (ERD)
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