0% found this document useful (0 votes)
6 views4 pages

Overview of Data Models in DBMS

The document outlines various data models used in database management systems, including the Hierarchical Model, Network Model, Entity Relationship Model, Relational Model, and Object Oriented Data Model. Each model is described in terms of its structure, relationships, and examples, highlighting how data is organized and accessed. The document emphasizes the evolution of data models from hierarchical structures to more complex relational and object-oriented frameworks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Overview of Data Models in DBMS

The document outlines various data models used in database management systems, including the Hierarchical Model, Network Model, Entity Relationship Model, Relational Model, and Object Oriented Data Model. Each model is described in terms of its structure, relationships, and examples, highlighting how data is organized and accessed. The document emphasizes the evolution of data models from hierarchical structures to more complex relational and object-oriented frameworks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Data Model

Data Model gives us an idea that how the final system will look like after its
complete implementation. It defines the data elements and the relationships
between the data elements. Data Models are used to show how data is
stored, connected, accessed and updated in the database management
system.
Hierarchical Model
Hierarchical Model was the first DBMS model. This model organizes the data
in the hierarchical tree structure. The hierarchy starts from the root which
has root data and then it expands in the form of a tree adding child node to
the parent node. This model easily represents some of the real-world
relationships like food recipes, sitemap of a website etc.

Network Model
This model is an extension of the hierarchical model. It was the most
popular model before the relational model. This model is the same as the
hierarchical model, the only difference is that a record can have more than
one parent. It replaces the hierarchical tree with a graph. Example: In the
example below we can see that node student has two parents i.e. CSE
Department and Library. This was earlier not possible in the hierarchical
model.
Entity Relationship Model(E-R Model):
The Entity Relationship(E-R) data model is based on concept of real world
that consists of a collection of basic objects called 'entities' and relationship
among the object.
Entity-
An Entity in an E-R Data Model is a real world object having properties
called Attributes.
Attributes-
Every attribute is defined by set of values called domain.

Example: In a school database, student is considered as an entity.


Student has various attributes like SName, SAge, SClass etc.

Relationship:
A logical Association among several entities.
Example: In the above example we add 'Teacher' entity with attribute
T_Name, T_class. So student and teacher can be relationship with relation
class.

One entity can have 2,3 more relationship with other entity.
Relational model
In relational model, the data and relationships are represented by collection of
inter-related tables. Each table is a group of column and rows, where column
represents attribute of an entity and rows represents records.
Sample relationship Model: Student table with 3 columns and four records.
Table: Student
Stu_Id Stu_Name Stu_Age

111 Ashish 23

123 Saurav 22
169 Lester 24

234 Lou 26
Table: Course
Stu_Id Course_Id Course_Name

111 C01 Science

111 C02 DBMS

169 C22 Java

169 C39 Computer Networks


Here Stu_Id, Stu_Name & Stu_Age are attributes of table Student and Stu_Id,
Course_Id & Course_Name are attributes of table Course. The rows with values
are the records (commonly known as tuples).
Object Oriented Data Model
In this model, both the data and relationship are present in a single
structure known as an object. We can store audio, video, images, etc in the
database which was not possible in the relational model (although you can
store audio and video in relational database, it is adviced not to store in the
relational database). In this model, two are more objects are connected
through links. We use this link to relate one object to other objects.

In the above example, we have two objects Employee and Department. All
the data and relationships of each object are contained as a single unit. The
attributes like Name, Job_title of the employee and the methods which will
be performed by that object are stored as a single object. The two objects
are connected through a common attribute i.e the Department_id and the
communication between these two will be done with the help of this
common id.

Common questions

Powered by AI

While using a tree structure in the hierarchical model can be effective for representing data with clear, one-to-many relationships like organizational charts, it is inadequate for complex data relationships involving many-to-many associations . The model's rigidity makes it difficult to represent and query data where multiple relationships need to be simultaneously managed, such as a student associated with numerous departments and projects . Consequently, when data does not naturally conform to a tree hierarchy, this model necessitates convoluted workarounds, reducing its effectiveness compared to more flexible models like the network or relational models, which inherently support complex relationships through graphs or tables .

In the object-oriented data model, methods enhance data handling by incorporating behavior directly within the objects, permitting operations on the data encapsulated by the object. Methods define functions such as computation, updating object state, or handling data relations, which streamline operations by coupling data with the functions that can manipulate it . This approach allows for greater modularity, as objects can independently handle complex tasks and interactions based on internal methods, facilitating more robust data management and inter-object communication .

The relational model's tabular representation significantly influences data retrieval processes by facilitating straightforward and efficient querying through SQL . Tables in the relational model allow users to join and aggregate data across different entities using common attributes, streamlining complex queries that might be cumbersome in hierarchical or network models . However, the need for multiple joins in cases of complex many-to-many relationships might introduce performance overheads, contrasting with network models where such relationships are inherently represented . Nonetheless, the relational model's declarative approach enables users to express what to retrieve without specifying how, enhancing ease of use and access .

The E-R model simulates real-world scenarios by using entities to represent objects or concepts and relationships to capture their interactions . Each entity comprises attributes that define its properties, thus mimicking intricate real-world characteristics in a structured format. For instance, in a university database, entities like 'Student,' 'Course,' and 'Instructor' can embody their real-world counterparts with attributes such as 'name,' 'ID,' and 'department,' while relationships articulate their interactions like enrollment or teaching assignments . This modeling assists in mapping complex scenarios into manageable data schemas, aiding system design and database integrity .

Attributes in an E-R model play a crucial role in defining the domain of an entity by specifying the set of permissible values or data types an attribute can have . This domain sets boundaries on what values an attribute can assume, ensuring data integrity and consistency across the database system. For example, the attribute 'SName' of a 'Student' entity is likely constrained to accept only alphabetic strings, representing the student's name, which helps maintain the dataset's validity within the E-R model framework .

The object-oriented data model differs from the relational data model by storing both data and relationships within a single structure known as an object. It allows for multimedia data types like audio, video, and images, which are cumbersome in a relational model . Additionally, relationships in the object-oriented model are managed through links between objects, which can perform methods as part of their structure, whereas the relational model uses tables composed of rows and columns to represent data and relationships .

The relational model represents data using collections of inter-related tables, with each table comprising rows (records) and columns (attributes), emphasizing simplicity and efficiency for managing data through Structured Query Language (SQL). Contrastingly, hierarchical models organize data in a tree-like structure, suitable for one-to-many relationships, and network models use a graph structure to allow more complex many-to-many relationships with entities having multiple parents . These traditional models often require navigational logic to traverse the data structures, whereas the relational model leverages declarative queries for data manipulation, prioritizing flexibility and user accessibility .

In the E-R model, entities represent real-world objects, and each entity is characterized by attributes, which define its properties . Relationships are logical associations between these entities, facilitated through their attributes, allowing the database to define how entities are connected and impact each other . For example, in a school database, a 'Student' entity and a 'Teacher' entity can have a relationship based on a class attribute, defining how students and teachers are associated through classes they attend or teach .

The hierarchical model is limited by its rigid tree structure where each node has only one parent, making it less flexible for representing complex relationships such as many-to-many associations . On the other hand, the network model addresses this limitation by allowing nodes to have multiple parent nodes, effectively using graph structures to represent more complex relationships like a student being associated with both a department and a library .

The hierarchical model is advantageous in scenarios where data naturally forms a tree-like structure, such as representing organizational charts or file systems, due to its hierarchical tree organization. This can make data retrieval more intuitive and efficient for such structures . The network model extends these advantages by allowing more complex relationships with multiple parent nodes per entity, which is beneficial for representing many-to-many relationships, such as demonstrating the relationship between departments, employees, and projects where an employee can belong to multiple departments . These models may offer more efficient data retrieval and storage operations in their respective suitable scenarios compared to the relational model, which may require complex joins for similar data representations.

You might also like