DBMS Topics
Data Models
Last Updated : 21 May, 2026
A data model is a collection of conceptual tools for describing data, data relationships, data semantics, and consistency constraints. It provides a way to think about an
What is a Data Model?
A data model is a collection of conceptual tools for describing data, data relationships, data semantics, and consistency constraints. It provides a way to think about and represent the structure of a database.
Categories of Data Models
1. Hierarchical Model
Data is organized in a tree-like structure with a single root and parent-child relationships. Each parent can have many children, but each child has exactly one parent.
| │ ├── Student | Alice |
| │ ├── Student | Bob |
| │ └── Student | Carol |
| │ ├── Student | David |
| │ └── Student | Eve |
| └── Student | Frank |
Advantages: Simple for 1:N relationships, fast access following parent-child paths.
Disadvantages: Cannot represent M:N relationships naturally; redundancy if a child has multiple parents.
Example System: IBM IMS (Information Management System).
2. Network Model
An extension of the hierarchical model that allows many-to-many relationships. Data is organized as a graph, where records (nodes) are connected by links (edges).
| Student | Courses |
|---|---|
| Alice | CS101, MATH201, PHY301 |
| Bob | CS101, MATH201 |
| Carol | PHY301 |
Students can enroll in many courses, and each course can have many students.
Advantages: Supports M:N relationships, more flexible than hierarchical.
Disadvantages: Complex navigation; application programs must know the physical structure.
Example System: CODASYL databases.
3. Relational Model
Data is organized as a collection of tables (relations). Relationships between tables are represented using common attribute values (keys), not physical pointers.
Student Table
| SID | Name | DeptID |
|---|---|---|
| 1001 | Alice | 1 |
| 1002 | Bob | 2 |
Department Table
| DeptID | DeptName |
|---|---|
| 1 | Computer Science |
| 2 | Mathematics |
Relationship via DeptID (foreign key)
Advantages: Simple tabular structure, powerful query language (SQL), data independence, solid theoretical foundation (relational algebra).
Disadvantages: Complex joins can be slow for very large datasets; not ideal for hierarchical data.
Example Systems: MySQL, PostgreSQL, Oracle, SQL Server.
4. Entity-Relationship (ER) Model
A high-level conceptual data model used for database design. It represents data as entities (things), attributes (properties), and relationships (associations between entities).
ER models are typically converted into relational schemas for implementation.
5. Object-Oriented Model
Extends object-oriented programming concepts to databases. Data is stored as objects with:
- Attributes (data)
- Methods (behavior)
- Inheritance (IS-A relationships)
- Encapsulation (hiding implementation)
class Student {
int studentID;
String name;
double gpa;
void enrollInCourse(Course c) { ... }
double calculateGrade() { ... }
}Example Systems: ObjectDB, db4o, some features in PostgreSQL.
6. Object-Relational Model
A hybrid combining relational and object-oriented features. It supports complex data types, user-defined types, and methods within a relational framework.
Example Systems: PostgreSQL (natively supports arrays, JSON, user-defined types).
Comparison of Models
| Feature | Hierarchical | Network | Relational | Object-Oriented |
|---|---|---|---|---|
| Structure | Tree | Graph | Table | Objects |
| Relationships | 1:N only | M:N | M:N via FK | M:N via references |
| Query language | Procedural | Procedural | SQL (declarative) | OQL |
| Complexity | Low | High | Medium | High |
| Flexibility | Low | Medium | High | Very High |
| Widely used today | No | No | Yes | Limited |
Most Used Today
Modern Database Landscape
| Relational (SQL) | NoSQL |
|---|---|
| MySQL, PostgreSQL | Document: MongoDB |
| Oracle, SQL Server | Key-Value: Redis |
| SQLite | Column: Cassandra |
| Graph: Neo4j |
The relational model remains dominant for structured data, while NoSQL models serve specialized use cases in large-scale and flexible-schema scenarios.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Data Models.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this DBMS topic.
Search Terms
dbms, database management system, database notes, sql, unit, data, models, data models
Related DBMS Topics