Data and Information Management Term 1
Data and Information Management Term 1
Information
Management
Database design and concept
What is a database?
• A database is an organized collection of data stored in tables
consisting of records (rows) and fields (columns), with a
primary key uniquely identifying each record.
• Records store individual pieces of data, like information about
one person or item.
• Fields represent specific types of data within a record, such as
a name, age, or ID.
• A foreign key is a field in one table that links to the primary
key in another table. It is used to create a relationship
between two tables, ensuring that data in both tables is
connected and consistent.
Characteristics of a good database
• Data integrity in a database means that the data is accurate,
consistent, and reliable throughout its lifecycle.
It ensures that the information stored in the database is
correct, not corrupted, and follows the rules set for
relationships between tables (e.g., primary and foreign
keys). For example, it prevents entering invalid data, like
assigning grades to a student ID that doesn’t exist.
• Physical integrity refers to the protection and preservation of
the physical storage of data in a database, ensuring that
hardware failures, power outages, or environmental factors
(like fires or floods) do not damage or corrupt the data.
• Logical integrity ensures that the data in a database remains
accurate, consistent, and follows the defined rules and
relationships, regardless of how it is accessed or manipulated.
It focuses on the correctness of data and its logical
structure, such as enforcing constraints like primary keys,
foreign keys, and data validation rules to prevent errors
like duplicate records or invalid relationships between
tables.
• Referential integrity is a type of logical integrity in a database
that ensures relationships between tables are consistent.
It requires that a foreign key in one table always refers to
a valid primary key in another table. For example, if a
"Student ID" in a Grades table is linked to the "Student
ID" in the Students table, referential integrity ensures
that you can’t add a grade for a student who doesn’t
exist or delete a student record that still has grades
associated with it.
•
Data redundancy
• Data redundancy is when the same data is stored in multiple
places in a database or system.