Sample Assignment
Sample Assignment
Declaration of authenticity:
part of it has been submitted for any other assignment and I have acknowledged
academic honesty.
3. I understand that failure to meet these guidelines may instigate the centre’s
_________________ _________________
1|Page
Introduction
A database is typically managed with the aid of using a database control system (DBMS).
Together, the statistics and the DBMS, in conjunction with the programs which might be
related to them, are called a database system, regularly shortened to only a database.
2|Page
Table of Contents
Introduction ............................................................................................................................................. 2
1.1 Describe the concept of normalisation in the storage of data ....................................................... 4
1.2 Different Normal Forms ............................................................................................................... 4
1.3 Explain data and functional dependencies .................................................................................... 7
1.4 Compare and contrast the ‘hierarchical’ and the ‘relational’ database management system ........ 9
1.5 Explain the use of entity relationship diagrams .......................................................................... 12
Conclusion ............................................................................................................................................ 14
Reference .............................................................................................................................................. 15
3|Page
1.1 Describe the concept of normalisation in the storage of data
Database Normalisation is a way of organising the facts inside the database. Normalisation is
a scientific technique of decomposing tables to cast off facts redundancy (repetition) and
unwanted traits like Insertion, Update and Deletion Anomalies. It is a multi-step technique
that places facts into tabular form, eliminating duplicate facts from the relation tables.
(Morris, 2022)
Benefits of normalisation:
Narrow tables: Having all of the extra adjusted tables lets in your tables to have fewer
sections and lets in you to fit extra statistics for every records page.
Fewer statistics for every desk suggest faster protection errands, as an example, listing
remakes.
Only be part of tables which you simply need extra great fashionable database
association.
Information consistency within the data.
Smaller Database. (JavaTPoint, 2011)
4|Page
2NF (Second Normal Form)
Be in 1NF
Single Column Primary Key
Be in 2NF
Has no transitive functional dependency
5|Page
BCNF (Boyce-Codd Normal Form)
Even when a database is in 3rd Normal Form, still there would be anomalies resulting if it has
more than one Candidate Key.
6|Page
1.3 Explain data and functional dependencies
Data dependency refers to the relationships and constraints that exist between data elements
within a database.
Functional dependency is a concept that specifies the relationship between two sets of
attributes where one attribute determines the value of another attribute. (GeeksforGeeks,
2021)
X→Y
Determinant → Dependent
(Employee_id )→ (Employee_Name)
Multivalve Dependency:
7|Page
Trivial Functional Dependency:
A dependent is always a subset of the determinant. If X → Y and Y is the subset of X, then it
is called trivial functional dependency. {EMPLOYEE_ID, NAME} → NAME is a trivial
functional dependency, since the dependent NAME is a subset of the determinant
set {EMPLOYEE_ID,NAME}. (GeeksforGeeks, 2021)
8|Page
Transitive Dependency
Dependent is indirectly dependent on determinant. i.e. If a → b & b → c, then according to
the axiom of transitivity, a → c. (GeeksforGeeks, 2021)
9|Page
Advantages
Fast and efficient data retrieval (because data is organised in a predictable and
structured way)
Easy to add/delete information
Predictable data structure
Efficient storage of data because of parent-child relationship
Good performance in terms of data retrieval and querying, especially for large
datasets. (Bhandari, 2021)
Disadvantages
Limited flexibility (not well suited for handling complex data relationships or
changes in data structures)
Difficult to maintain and update because data structure can impact the entire
database.
Limited support for data manipulation (data aggregation or data mining)
Limited interoperability (not compatible with other database models)
Lack of standardisation (not as widely used as other database models, there is a lack
of standardisation and best practices for their use and management.) (Bhandari, 2021)
10 | P a g e
Advantages Disadvantages
Security
Fast Performance
Accuracy Lack of Scalability
Multi user Cost
Simple Model Can’t handle all data type
One-to-one: It is used to create a relationship between two tables in which a single row of
the first table can only be related to one and only one record of a second table.
One-to-Many/ Many-to-one: Any single row of the first table can be related to one or more
rows of the second table, but the rows of second tables can only relate to the only row in the
first table. It is also known as a many to one relationship.
11 | P a g e
Many-to-many: Each record of the first table can relate to any records (or no records) in the
second table. Similarly, each record of the second table can also relate to more than one
record of the first table. It also represented an N:N relationship.
Benefits of ER Diagram:
12 | P a g e
ERD Diagram allows you to communicate with the logical structure of the database to
users. (Scott, 2015)
Disadvantages of ER Diagram:
Some information may be lost or hidden while creating an ER model.
It is not possible to represent data manipulation (commands like
insert(),delete(),alter(),update()) in an ER model.
There is no industry standard for notations of an ER diagram.
Missing relationship cardinalities, so everything looks like a one-to-one
relationship. (Borisova and Zein, 2022)
Entity: An entity is a specific real-world item, idea, or thing that is represented by a table in a
database. It can be anything that can be uniquely identified and about which data is recorded,
including people, places, things, events, and concepts. (Coronel and Morris, 2019)
Data Model: A Data Model in Database Management System (DBMS) is the concept of
tools that are developed to summarise the description of the database. Data Models provide
us with a transparent picture of data which helps us in creating an actual database. Types of
Relational Models is Conceptual Data Model, Logical Data Model and Physical Data Model.
(Coronel and Morris, 2019)
13 | P a g e
Conclusion
Anyone seeking a job, should be familiar with any programming language and databases. In
IT, there is a greater need (Information Technology). Understanding the data flow and data
transactions between the application and the database are always aided by database
understanding.
14 | P a g e
Reference
Visual Paradigm (2019). What is Entity Relationship Diagram (ERD)? [online] Visual-
paradigm.com. Available at: https://www.visual-paradigm.com/guide/data-
modeling/what-is-entity-relationship-diagram/.
Scott, E. (2015). ER Diagrams and its Benefits | EssayCorp - Assignment Help. [online]
Available at: https://www.essaycorp.com/blog/er-diagrams-and-its-benefits.
Borisova, S. and Zein, A. (2022). Disadvantages of Relational DBMS for Big Data
Processing. Information Systems and Design, pp.279–290.
doi:https://doi.org/10.1007/978-3-030-95494-9_23.
15 | P a g e