Lecture 5 Data Models HM NM
Lecture 5 Data Models HM NM
• REFERENCE BOOKS • A database model is a type of data model that gives the logical
• C.J.Date, “An Introduction to Database Systems”, Addison Wesley structure of a database.
• Rob,” Database Principal Fundamental Design, Cengage Learning
1
8/24/2022
7 8
TRADITIONAL APPROACH
• File System Approach
9 10
Files Users
Data Application programs DISADVATAGES OF
Payroll
Payroll Reports FILE SYSTEM APPROACH
programs
1. Data Redundancy
Invoicing Reports 2. Data Inconsistency
Invoicing programs
3. Scattered data in various file formats
4. Data Security Problem
Inventory
Inventory control
Reports 5. No Concurrent Access
control programs
6. Integration Problem
Management
Management inquiries Reports
inquiries programs
2
8/24/2022
• Each parent can have many children, but each child has only one
parent (One-to-many relationship).
13 14
• At the top of the hierarchy, there is one entity, which is called the
root.
Level1 Child Level1 Child Level 1 Child
15
18
3
8/24/2022
ADVANTAGES ADVANTAGES
1. Simplicity: Since the database is based on the hierarchical structure, 3. Data Integrity: Since it is based on the parent child relationship,
the relationship between the various layers is logically simple. there is always a link between the parent segment and the child
segment under it.
2. Data Security: Hierarchical model was the first database model that
offered the data security that is provided by the DBMS. 4. Efficiency: It is very efficient because when the database contains a
large number of 1:N relationship and when the user require large
number of transaction.
21 22
DISADVANTAGES DISADVANTAGES
1. Implementation complexity: Although it is simple and easy to 3. Operational Anomalies: Hierarchical model suffers from the insert,
design, it is quite complex to implement. delete and update anomalies, also retrieval operation is difficult.
23 24
4
8/24/2022
• These purposes include • Its distinguishing feature is that the schema, viewed as a graph and
• Representing complex data relationship more effectively. not restricted to being a hierarchy.
• Improving database performance.
• Imposing a database standard.
• Object types are nodes and relationship types are arcs.
25 26
27 28
Project 1 Project 2
5
8/24/2022
ADVANTAGES DISADVANTAGES
1. Provide very efficient "High-speed" retrieval due to data access • System complexity
flexibility.
• Lack of structural independence
2. Handles more relationship types.
3. Conformance to standards.
31 32
33 34
THANK YOU
For queries
Email: [email protected]
35