Unit 10 complete assignment
Unit 10 complete assignment
Student Declaration
Student ID: 2134427
Student ID: 2134427
Introduction
Design: Use an appropriate design tool to design a relational database system for
a substantial problem (LO1)
The brief schema for planned database for DBL has been provided below:
Customer - (CustomerID (PK), FirstName, LastName, DOB, email, PhoneNo,
Address, Postcode)
Product - (ProductID (PK), produdtName, price, stocklimit, description)
Orders - (OrderID (PK), OrderDate, deliveryDate, PaymentType,CustomerType,
Branch)
OrderItem - (OrderItemID (PK), OrderID, ProductID)
Primary Key
A primary key is used to ensure that the data in each column is unique. It gives a record
to the relational database table a distinct identity. It makes the combination of Not Null
and UNIQUE requirements. The value of is irreversible.
The Primary Key attribute for each entity
Customer ----------- CustomerID
Orders ----------------- OrderID
Order Item ----------------- OrderItemID
Product ----------------- ProductID
Foreign key
A foreign key in database is a field in an interactive table that matches the primary key
column of another table. The function of primary key is to make the data available to
another table (Yasar, 2022).
ERD
ERD means the Entity Relationship Diagram. It indicates the graphical representation of
data which shows the relations among the objects, events, people or places. It is the
process or idea of the starting point for a database (Biscobing, 2019). It also helps to set
the requirements for creating an information system.
Student ID: 2134427
Components of an ERD
The main components of an ERD are the Entities, Attributes or Fields and
Relationships.
An entity can be an object, place, event or a person who or which stores data in a
database. It is represented in a rectangle form in a relationship diagram.
The figure above shows the entity where an employee works for a company. Here the
person and the company are the entity.
Attribute refers to the name or thing which is the data characteristics of an entity or data
elements.
Student ID: 2134427
For example, the above figure shows the person as the entity and it has different types
of data which are related to the entity. The data types are the attributes for the entity.
Relationship describes the relation between two entities and represented in a diamond
shape. As it is shown in the figure for entities. The two entities – Employee and
Company are related by the relationship is work. The employee works for the Company.
Here the term ‘work for’ is the relationship between these two entities. Relationships are
three in types – One to one, One to many and Many to many (tutorialspoint, 2023).
Student ID: 2134427
ERD
The figure above shows different types of relationship. It has been created with the help
of Lucid Chart. It has four entities – Customers, Orders, Product and OrderItem.
Student ID: 2134427
Normalisation
Data normalisation is the process of designing data to facilitate a more cohesive form of
data entry with the target of cleaning of data. It recognises the removing of unstructured
data or redundant the data to enable more logical data storing process. The main goal
of normalisation is to achieve the standard of data format across the entire system of an
organisation. It is achieved by setting up the default normalisation rules which will
ensure same data standard in the whole database of an organisation.
There are three most common and widely used normalisation forms – First Normal
Form (1NF), Second Normal Form (2NF), and Third Normal Form (3 NF)
Database Normalisation
Student ID: 2134427
Evaluation of Design
The aim of the interface design is to make it easier to use for the customers as well as
meet the requirements set by the client. The author has given importance on making the
interface user friendly. A user can start navigating from the welcome page. This page
has the buttons for customer, product and order. So, one can easily navigate to the
intended page.
After navigating to the required page, a user will be able to add, delete or edit data as
needed. The buttons on the very page will allow a user to go forward and backward
within the dataset for getting the next or previous information. There are some validation
rules in the database which will guide the user to insert right information to get accurate
data. Moreover, it will ensure that the only correct data will be inserted into the
database.
Student ID: 2134427
The author has developed the database system with required fields. The screenshots of
the tables, Forms and Queries have been given below.
Forms:
Student ID: 2134427
Student ID: 2134427
Form of view
Student ID: 2134427
Student ID: 2134427
Testing: Test the System Against User and System Requirements (LO3)
Date: 23/10/2023
Table: Test Plan
Test Purpose: Test Data: Expected Actual Pass/Fail:
No: Result: Result:
01 Add new Jack Customer Customer pass
record to Johns date needs data needs
the 5/7/2023 to add to the to be added
customer Male customer to the
table Mr table customer
[email protected] table
FE54 6FE
(4516)
London 45164646546
02 Add new 9/10/2023 Order needs Order Pass
record to Delivery to be added Added to
the order date10/10/2023 to Order Order table
date Order table online table
Order type credit card
03 Add new Apple needs to be Product Product Pass
record to added needs to be added to
the added to product
product product table
table table
04 Delete Sara Delete Customer Pass
record Johnson customer record
from the female record from deleted
table Mrs the table
09/05/2023
(4544) 6444545
[email protected]
SW45 4SW
The technical and user documents has been provided into the Appendix
Student ID: 2134427
References
Chris, K. (2023) Database normalization – normal forms 1NF 2NF 3NF table examples,
freeCodeCamp.org. Available at: https://www.freecodecamp.org/news/database-
normalization-1nf-2nf-3nf-table-examples/ (Accessed: 27 October, 2023).
Kidd, C. (2022) Data Normalization explained: How to normalize data, Splunk. Available
at: https://www.splunk.com/en_us/blog/learn/data-normalization.html (Accessed:
02 November 2023).
Appendix:
DBL Database
Version: 1.0
Technical Document
Revision History
Date Version Description Author
07.10.2023 0.1 DBL Technical Document Hosham Gamaleldin Gasir
Student ID: 2134427
Table of Content
Student ID: 2134427
Introduction
The aim of the creation of the DBL Database project is to modernize the database of
the company which will ensure the improvement in the data storage and data access
procedure. The new database will provide efficiency in reporting and retrieving data
from the online activities of the users of the company website.
System Overview
Points of Contact
1
Student ID: 2134427
System Architecture
The DBL system has been developed as a standalone application with four tables
and four forms. The DBL Database has been developed in MS ACCESS. The figure
below depicts the architecture of the DBL Application for the future running of the
webserver.
2
Student ID: 2134427
3
Student ID: 2134427
4
Student ID: 2134427
Database Specifications
Physical Design
Below is the entity relationship diagram, which shows the physical design of the
database
5
Student ID: 2134427
Physical Structure
Link to the database specifications
Physical structure of the database, with the tables, relationships and description of
the tables and fields.
Product Table
6
Student ID: 2134427
Order table
OrderItem
7
Student ID: 2134427