Free tutorials & notes in Hindi & English · Clean code examples 🧰 Free PDF & Image Tools →
MySQL + SQL · Lesson 11

Data Models in DBMS

In this lesson: Types of data models in DBMS — hierarchical, network, relational, ER and object — with diagrams, pros and cons.

What is a data model

A data model is a way of organising how data is stored and connected in a database. It defines the structure, the relationships, and the rules. Over the years several models appeared — hierarchical, network, relational and object-oriented — each with a different way of arranging data.

💡 A data model is the "shape" of your data: tree, graph, tables, or objects.

Hierarchical model

The hierarchical model arranges data in a tree, with a parent-child structure. Each child has exactly one parent, like folders inside folders.

Company
 ├── Department A
 │    ├── Employee 1
 │    └── Employee 2
 └── Department B

It is simple and fast for tree-like data, but rigid: it cannot easily show a child belonging to two parents.

Network model

The network model is like the hierarchical one but a child can have multiple parents, forming a graph. This allows many-to-many relationships.

Student ── enrolled in ── Course
   (a student can take many courses,
    a course can have many students)

It is more flexible than the hierarchical model, but more complex to design and navigate.

Relational model

The relational model stores data in tables linked by keys. It is the most popular by far.

students(roll PK, name)
courses(code PK, title)
enrollments(roll FK, code FK)

Tables are simple to understand, easy to query with SQL, and keep data consistent. This balance of simplicity and power is why relational databases dominate.

Object-oriented model

The object-oriented model stores data as objects, bundling data and behaviour together, just like in object-oriented programming. It suits complex data such as images, audio and CAD designs, but is less common than the relational model for everyday applications.

Comparison

ModelStructureRelationshipsCommon today?
HierarchicalTreeOne-to-manyRare
NetworkGraphMany-to-manyRare
RelationalTablesVia keysMost common
Object-orientedObjectsObject linksNiche

Common mistakes

  • Confusing hierarchical and network. Tree (one parent) vs graph (many parents).
  • Thinking all models are equal today. Relational is by far the most used.
  • Mixing data model with data structure. A model is the overall design approach.
  • Ignoring why relational won. Its simplicity plus SQL made it the standard.

Summary

  • A data model defines how data is organised and connected.
  • Hierarchical: a tree with one parent per child.
  • Network: a graph allowing many parents (many-to-many).
  • Relational: tables linked by keys — the most popular.
  • Object-oriented: data as objects, for complex data.

Next, focus on the winner in the relational database, or its table terms in relation terms.

Frequently Asked Questions

What is a data model in DBMS?
A data model is a way of organising and describing how data is stored and connected in a database. It defines the structure, relationships and rules. Common data models include hierarchical, network, relational and object-oriented.
What is the hierarchical data model?
The hierarchical model organises data in a tree structure, with a parent-child relationship. Each child has exactly one parent, like folders within folders. It is simple but rigid, since it cannot easily show many-to-many links.
What is the difference between hierarchical and network models?
In the hierarchical model each child has one parent (a tree). In the network model a child can have multiple parents (a graph), allowing many-to-many relationships. The network model is more flexible but more complex.
Why is the relational model the most popular?
The relational model stores data in simple tables linked by keys, which is easy to understand, query with SQL, and keep consistent. Its balance of simplicity and power made it the standard for most databases.
What is the object-oriented data model?
The object-oriented model stores data as objects, like in object-oriented programming, bundling data and behaviour together. It suits complex data such as multimedia, but is less common than the relational model.
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

Next topicDBMS Tutorial for Class 12 to B.Tech Your progress: 11 / 151 (7%) · Lesson 12 / 151 Continue →

How was this lesson?

Your feedback helps us make the content better.

Write a review or suggestion (optional)

After approval, your name and city may appear publicly with your review. Please do not write your email or phone number.

▶ CodingEasily on YouTube

Learn with video lessons in easy Hindi

Featured video: RDBMS Part 3 – Class XI Commerce IT

▶ Subscribe – it’s free