Part 1
Part 1
Part 1
Higher Nationals in
Computing
Database Design & Development
MR. Siyab Aakil
Higher National Diploma in Computing
Course Tittle Pearson BTEC Level 5 Higher National Diploma in Computing
This report seeks to justify, explain, and clarify the specifics and semantics of the relevant
database created at their request.
DATABASE MODELLING
What is a Database?
A database is an organized collection of data created for simple administration, updating, and
access. Data records or files holding several forms of information, such as sales transactions,
client information, financial information, and product specifications, are frequently kept in
computers.
Databases are used to store, manage, and provide access to many types of data. They effectively
gather data on people, places, or things, concentrating it in one spot for observation and
analysis. In their most basic form, databases are catalogs of data. (Lutkevich, 2023)
Use of Database:
Consider a straightforward database for managing the personnel of a business. Columns in the
table could include "Employee ID," "First Name," "Last Name," "Department," and "Salary."
The information in the table will then be organized so that each row represents a single
employee, with each column containing information about that person.
Tables are named to uniquely identify them inside the database and are created to contain
particular sorts of data. Databases are an effective approach to handling and dealing with huge
volumes of information because they enable efficient data organization, retrieval, and
modification. Keys may be used to define relationships between tables to build more
complicated databases that link and store data from many sources. (Indeed Editorial Team,
2022)
Based on the given scenario, I expect the table of the database to be as follows:
When working with complex and interrelated data, establishing and preserving connections in
a database protects data integrity, decreases redundancy, and enables effective information
searching and retrieval. (Indeed Editorial Team, 2022)
A huge table with duplicated or related data is divided into smaller, more manageable tables as
part of the normalizing process. Then, associations based on shared data items are used to
connect these tables. Each of the usual forms, or rules, that govern the process addresses a
certain sort of data reliance and redundancy.
1. 1NF: A table's columns must only contain atomic values (indivisible data), and each
record must be individually identified, according to the First Normal Form (1NF). It
removes the possibility of having recurring groups of characteristics or storing multiple
values in a single cell.
Rules:
• Each table cell should contain a single value.
• Each record needs to be unique.
2. 2NF: Second Normal Form (2NF): 2NF eliminates partial dependencies in addition to
satisfying the conditions of 1NF. It implies that the full primary key, not just a portion
of it, must be a dependency for all non-key properties in a database.
Rules:
• Rule 1- Be in 1NF
• Rule 2- Single Column Primary Key that does not functionally dependant on
any subset of candidate key relation
3. 3NF: Building on the Second Normal Form, the Third Normal Form (3NF) eliminates
transitive dependencies. It makes sure non-key attributes in the same table don't rely on
other non-key attributes.
Rules:
• Rule 1- Be in 2NF
• Rule 2- Has no transitive functional dependencies
Data redundancy is decreased by normalizing a database, which not only frees up storage but
also aids in maintaining data correctness and consistency. Since the data is organized among
tables, updates, insertions, and removals are less likely to cause errors. The trade-off is that
data retrieval from numerous connected tables could need more intricate queries. Based on the
unique needs of the application and the size of the database, database designers must balance
normalization and convenience of data retrieval. (Peterson, 2023)
Keys of Database
In a relational database, keys are traits or set of properties that are essential for creating links
between tables and uniquely identifying records inside a table. They are utilized to promote the
development of linkages between tables, guarantee data integrity, and make data retrieval
easier. In a database, the most common key types are:
Primary Key:
• Each record in a table has a primary key that serves as a unique identifier. It guarantees
that every row in the table can be distinguished from every other row and can be
uniquely recognized.
• Duplicate or empty values are not permitted in the main key.
• Every table in a relational database has a primary key, which needs to be specified when
the table is created.
• Forging associations between other tables uses it as a reference (foreign key).\
Foreign Key:
• An attribute, or set of attributes, in one table that relates to the primary key of another
table is known as a foreign key. The two tables are connected or related as a result.
Unique Key:
• A unique key guarantees uniqueness inside a table, just like a primary key does. A table,
however, can have more than one unique key, unlike the main key.
• When you want to guarantee that a certain characteristic or group of attributes is unique
but do not want to utilize it as the primary key, you use unique keys.
Candidate Key:
Composite Key:
Super Key:
• A group of one or more qualities known as a super key may be used to specifically
identify records in a database.
• It is a superset of candidate keys since it may have more qualities than the bare
minimum needed for uniqueness.
To efficiently construct links between tables and ensure data integrity, it is crucial to
comprehend and define keys in a database correctly. They make ensuring that the database
continues to manage data consistently and effectively. (JavaTPoint, 2022)
1. Entity:
• A real-world item, idea, or thing that requires data to be recorded in the database is
represented by an entity.
• Entities are represented in the diagram as rectangles with the name of the entity
written within.
2. Attributes:
• The traits or possessions of an entity that define it and store information are called
its attributes.
• Each entity has one or more characteristics, which are shown as linked ovals or
ellipses next to the appropriate entity.
3. Relationship:
• A relationship shows how two or more entities are associated or connected.
• It displays the relationships between things in the database.
• The linked entities are connected by diamond-shaped relationships, and the type
of relationship (e.g., one-to-one, one-to-many, many-to-many) is shown next to the
diamond.
4. Cardinality:
• The number of instances of one entity that are connected to the number of instances
of another entity by a connection is referred to as their cardinality.
• Near the ends of the relationship lines, common notations for cardinality include
"1" (one), "0..1" (zero or one), "0.." (zero or many), and "1.." (one or many).
These entities, attributes, and connections will be graphically represented in the ER diagram,
along with their cardinality, to give a clear and succinct outline of the logical structure of the
database. During the implementation phase, the physical database schema is built on top of this
design. (JavaTPoint, 2022)
The organizational Entity Relationship diagram (ERD) was used as a modeling technique to
model the database. During the modeling phase, 5 different Entity and their characteristics were
identified according to the visual and stated needs of the football matches. On closer inspection,
it was found that these companies have relationships between them. After a thorough study,
the relationships were determined and properly mapped.
Indeed Editorial Team, 2022. What Is a Table in a Database? (Including Its Structure). [Online]
Available at: https://ca.indeed.com/career-advice/career-development/what-is-a-table-in-a-
database
[Accessed 01 July 2023].
Peterson, R., 2023. What is Normalization in DBMS (SQL)? 1NF, 2NF, 3NF Example. [Online]
Available at: https://www.guru99.com/database-normalization.html
[Accessed 01 July 2023].