ahmadfawadazizi1979
0 views
18 slides
Oct 13, 2025
Slide 1 of 18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
About This Presentation
Fundamentals of Database
Size: 43.41 KB
Language: en
Added: Oct 13, 2025
Slides: 18 pages
Slide Content
Chapter 2: Database Modeling Concepts Based on 'Asasat Database' (TVETA Afghanistan) Prepared by Ahmad Fawad Azizi
Learning Objectives - Explain the purpose of database models - Identify types of database models - Differentiate between hierarchical, network, relational, and object models
What is Database Modeling? Database modeling defines the structure and relationships of data in a database system. It shows how data elements are connected and how they can be accessed and managed.
Major Types of Database Models 1. Hierarchical Model 2. Network Model 3. Relational Model 4. Object-Relational Model 5. Object-Oriented Database Model
Hierarchical Database Model - Oldest model (used in 1960s–1970s) - Data is organized in a tree structure (Parent–Child) - Each child has only one parent - Example: Organizational structure, file directory systems
Advantages of Hierarchical Model - Fast data retrieval - Simple structure - Good for 1-to-many relationships
Disadvantages of Hierarchical Model - Complex to modify or search - No many-to-many relationships - Redundant data - Rigid structure
Network Database Model - Extension of hierarchical model - Allows many-to-many relationships - Data is represented as records connected by links (pointers) - Developed by CODASYL in late 1960s
Advantages of Network Model - Supports complex relationships - Faster data access - Less redundancy compared to hierarchical model
Disadvantages of Network Model - Complex structure - Hard to modify or design - Requires skilled programmers
Relational Database Model - Proposed by E.F. Codd in 1970 - Data stored in tables (rows and columns) - Uses primary and foreign keys to relate data - SQL used for data manipulation
Codd’s 12 Rules (Summary) 1. Information Rule 2. Guaranteed Access 3. Systematic Treatment of Nulls 4. Active Online Catalog 5. Comprehensive Data Sub-language 6. View Updating 7. High-Level Insert, Update, Delete 8. Physical & Logical Data Independence 9. Integrity Independence 10. Distribution Independence 11. Non-Subversion Rule
Advantages of Relational Model - Simplicity and flexibility - Powerful querying via SQL - Data independence - Data integrity and consistency - Suitable for business and scientific applications
Disadvantages of Relational Model - Slower for large complex data - Expensive implementation - Difficult for multimedia or hierarchical data
Object-Relational Model - Combines relational and object-oriented principles - Supports objects, classes, and inheritance - Stores data as objects with attributes and methods - Used in modern systems like PostgreSQL and Oracle
Object-Oriented Database Model - Based on object-oriented programming concepts - Data and behavior stored together in objects - Supports inheritance, encapsulation, and polymorphism - Used in applications like CAD, AI, multimedia
Comparison of Models Hierarchical: Tree structure, 1-to-many only Network: Graph structure, many-to-many Relational: Tables, keys, and SQL Object-Oriented: Objects and classes Object-Relational: Mix of relational and object features
Summary • Database models define how data is structured and related. • Relational model remains the most widely used. • Object-oriented and object-relational models are used in advanced applications. • Understanding models helps in efficient database design.