Chapter2 Database Fundamentals Slides Powerpoint

ahmadfawadazizi1979 0 views 18 slides Oct 13, 2025
Slide 1
Slide 1 of 18
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18

About This Presentation

Fundamentals of Database


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.