5. Data Model
5. Data Model
On
Dated: 27-06-2022
2
Learning Objective
• Method to organize data required in an application as
relations.
• Importance for an integrated database in organizations.
• Goals of Data Base Management systems (DBMS).
• Entity-Relationship (ER) modeling to develop a conceptual
model of data.
• Structure and organization of DBMS
Learning Outcome
• Define program-data independence, data models for
database systems, database schema and database instances.
• Identify the methodology of conceptual modeling through
Entity Relationship model.
• Identify the methodology of logical model.
• Identify the methodology of physical model.
What is a Data Model?
Definition: precise description of the data content in a
system
• A model is a representation of reality, ‘real world’
objects and events, and their associations.
• It is an abstraction that concentrates on the essential,
inherent aspects of an organization.
• A data model represents the organization itself.
Why do we need to create data
models?
To aid in the development of a sound database design
that does not allow anomalies or inconsistencies
• Insertion
• Updating
• Deletion
• Retrieval
Hierarchical Model
General Manager
Dy. Gen. Manager Dy. Gen. Manager Dy. Gen. Manager Dy. Gen. Manager
Part Records
P_No. Name Color Weight City
P1 Nut Red 12 Qadian
S_No. P_No. Qty.
P2 Bolt Green 17 Amritsar
S1 P1 250
P3 Screw Blue 17 Jalandhar
S1 P2 300
P4 Screw Red 14 Qadian
S1 P3 500
S2 P1 250
20
Contd…..
Hierarchical Model
Contd…..
22
Operations on Hierarchical Model
Contd…..
• Update Operation: Suppose we wish to change the city of
supplier S1 from Qadian to Jalandhar, then we will have to
carry out two operations such as searching S1 for each part
and then multiple updations for different occurrences of S1.
• The deletion of parent causes the deletion of child records also and if
the child occurrence is the only occurrence in the whole database,
then the information of child records will also be lost with the
deletion of parent. E.g., if we wish to delete the information of part P2
then we also lost the information of S3, S2 and S1 supplier. The
information of S2 and S1 can be obtained from P1, but the
information about supplier S3 is lost with the deletion of record for
P2.
Operations on Hierarchical Model
Mar 17,
2025
Hierarchical model….contd
• Advantages
– Many of the hierarchical data model’s features formed the
foundation for current data models
– Its database application advantages are replicated, implemented in a
different form, in current database environments
– Generated a large installed (mainframe) base, created a pool of
programmers who developed numerous tried-and-true business
applications
• Disadvantages
– Complex to implement
– Difficult to manage
– Lacks structural independence
– Implementation limitations
– Lack of standards
Rename table