4.1 Consider the entity relationship diagram (ERD) below and answer the questions that follow - NSC Information Technology - Question 4 - 2023 - Paper 2
Question 4
4.1 Consider the entity relationship diagram (ERD) below and answer the questions that follow.
4.1.1 What is the purpose of an ERD?
4.1.2 Choose the most suitabl... show full transcript
Worked Solution & Example Answer:4.1 Consider the entity relationship diagram (ERD) below and answer the questions that follow - NSC Information Technology - Question 4 - 2023 - Paper 2
Step 1
What is the purpose of an ERD?
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
An Entity Relationship Diagram (ERD) provides a visual representation of how the data/tables are linked in a relational database. This helps in understanding the relationships between different entities and ensures the logical structure of the database is correctly defined.
Step 2
Choose the most suitable term from the list below for the part of the ERD above that is indicated by (a):
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
a) Entity
Step 3
Choose the most suitable term from the list below for the part of the ERD above that is indicated by (b):
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
b) One
Step 4
Choose the most suitable term from the list below for the part of the ERD above that is indicated by (c):
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
c) Relationship
Step 5
Choose the most suitable term from the list below for the part of the ERD above that is indicated by (d):
97%
117 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
d) Many
Step 6
Name ONE other requirement of a primary key.
97%
121 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
A primary key cannot be null or empty, meaning it must always contain a value.
Step 7
Critically analyse the design of the tblPlaylist table by explaining why the table does not adhere to the rules of normalisation:
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The table lacks a primary key, which is essential for unique identification of records.
There are repeating fields, which result in redundancy. For instance, songs are repeated for each genre rather than being stored in a separate linked table.
The 'Number of songs' field should be calculated based on the entries in the songs columns, rather than manually entering it, making it prone to errors. When songs are added or removed, this field should be updated automatically.
Step 8
Give a reason why it is more suitable to save the playlist information in a database rather than in a text file.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Using a database allows for easier filtering of information, the ability to perform complex queries, and better maintenance of the data over time. This is in contrast to a text file, where data management functionalities are limited.