CH 9 Imp
CH 9 Imp
1. What is Data?
Data refers to raw, unprocessed facts or figures that lack context or meaning. It is the basic input
collected from various sources and is usually represented in numbers, text, symbols, images, or
sounds.
Characteris cs of Data:
Examples of Data:
Informa on is processed, structured, or organized data that has been given context and meaning. It
is the output derived from analyzing and interpre ng data to make it useful for decision-making or
communica on.
A report sta ng "Sales increased by 10% this quarter compared to the previous quarter."
Informa on: "The average sales for the past three months is 150 units."
3. What is a Database?
A database is an organized collec on of data stored and managed electronically, allowing for easy
access, retrieval, and manipula on. It serves as the backbone of data storage and processing systems
in modern compu ng.
Structured Storage: Stores data in tables with rows (records) and columns (fields).
Data Integrity: Maintains accuracy and consistency through rules like primary keys and
foreign keys.
Query Capability: Enables data retrieval using tools like SQL (Structured Query Language).
Types of Databases:
1. Rela onal Databases (RDBMS): Data is stored in tables with rela onships. Example: MySQL,
PostgreSQL.
3. Cloud Databases: Managed on cloud pla orms. Example: Google Cloud Firestore, AWS
DynamoDB.
Examples of Databases:
E-commerce Database: Stores customer details, product informa on, and transac on
history.
Library Database: Manages book inventory, member details, and borrowing records.
Healthcare Database: Tracks pa ent informa on, medical history, and appointments.
A data model is a conceptual framework that defines how data is organized, structured, and
represented in a database. It provides the founda on for designing, storing, and managing data in a
consistent and efficient manner.
5. Improved Data Integrity: Enforces rules and constraints to maintain accurate and reliable
data.
Purpose: To understand the structure of the data without worrying about implementa on
details.
Example:
En es like Student, Course, and Teacher with rela onships such as "enrolled in" or "teaches."
Focus: Detailed structure of the data, including a ributes and rela onships.
Purpose: To define the schema of the database without focusing on specific database
management systems (DBMS).
Features:
Example:
Features:
Example:
A Student table in MySQL with columns defined as Student_ID (INT PRIMARY KEY) and Name
(VARCHAR(50)).
1. Hierarchical Model
Example:
o A company database where a Department is the parent and Employees are children.
Advantages:
Simple to understand.
Disadvantages:
Rigidity in structure.
Complex to modify.
2. Network Model
Represents data using a graph structure where records are nodes, and rela onships are
edges.
Example:
o A project database where Projects can be linked to mul ple Employees, and
employees can work on mul ple projects.
Advantages:
Disadvantages:
Example:
Advantages:
Disadvantages:
4. Object-Oriented Model
Example:
o A database where a Vehicle object has a ributes like Make and Model and methods
like Start() or Stop().
Advantages:
Disadvantages:
4. Constraints: Rules to ensure data integrity, such as unique values or required fields.