Professional Documents
Culture Documents
Week 4 Files Vs Databases
Week 4 Files Vs Databases
Recap
In previous session, you have learnt about
- A system
- Information System
- Health information system
- Why have a Hospital Information System
- Categories of Hospital Information Systems
- Importance of Hospital Information System
Learning Objectives
In this session, you are going to learn about
- Databases Hierarchy of Data
- Database
- Data Entities, Attributes and Keys
- Traditional approach Versus Database approach
- Advantages of the database approach
- Disadvantages of the database approach
- Types of databases
- New trends in Databases
Files and Databases Hierarchy of Data
Bits
- a bit is the smallest unit of data representation
- value of a bit may be a 0 or 1
Example
1 or 0
Files and Databases Hierarchy of Data
Byte
- Character
- Eight bits make a byte which can represent a character
or a special symbol in a character code.
- One byte = eight bits
Example
10001100 represents F
Files and Databases Hierarchy of Data
Field(s)
- Know as attributes
- A field consists of a grouping of characters.
- A data field represents an attribute of some entity.
Example
Surname
First_name
Age
Files and Databases Hierarchy of Data
Record(s)
- A record represents a collection of attributes that
describe a real-world entity.
- A record consists of fields, with each field describing an
attribute of the entity.
Example
File(s)
- A group of related records.
- Files are frequently classified by the application for
which they are primarily used (employee file).
Example
SGB101420 John Andrew 25 MDB HI1
SGB101421 Edward Tshepo 21 MDB CHA
SGB101425 Mpho Oribile 23 DCO HI2
Files and Databases Hierarchy of Data
Database
- A group of related files
Example
- Student_Registration
- Student_Personal_Details
- Student_Performance
- Student_Fees_Details
- Student_Library_Details
Files and Databases Hierarchy of Data
Figure 7-1
Database
Definition
A database is a collection of information
that is organized so that it can be easily
accessed, managed and updated.
Examples
• Microsoft Access
• SQL Server
• Oracle Database
• Sybase
• MySQL
Data Entities, Attributes, and Keys
Types of Databases:
• Relational DBMS
• Hierarchical DBMS
• Network databases
Types of Databases:
Relational DBMS
• A relational database is a collection of tables
• Relational databases afford flexibility across the data and
are easy to understand and modify.
• Relates data across tables based on common data element
Examples:
DB2, Oracle, MS SQL Server
Types of Databases:
Types of Databases:
Hierarchical DBMS
• Organizes data in a tree-like structure
• Supports one-to-many parent-child relationships
• Records are dependent and arranged in multilevel
structures, consisting of one root record & any number of
subordinate levels.
Types of Databases:
Types of Databases:
Network DBMS
- Can represent more complex logical relationships, and is
still used by many mainframe DBMS packages
- Allows many-to-many relationship among records.
Activity - New Trends with Databases
1. Distributed databases
2. Data warehousing
3. Big Data
4. Rich databases (includes object-oriented databases)
Quiz
a. Data Systems
b. File Management Systems
c. Cloud Systems
d. None of these
Answer: A tree
Quiz