Data Models and DBMS Types

What are the four types of database models?

Hierarchical, network, relational and object-oriented are the four database models most often named. Here's what each one does and where it still shows up.

On this page
  1. Short answer
  2. Hierarchical model
  3. Network model
  4. Relational model
  5. Object-oriented model
  6. Comparing the four
  7. Why lists differ

Short answer

Textbooks and vendor guides most often name four database models: hierarchical, network, relational and object-oriented. Some lists swap in a flat model, which keeps all data in a single table, and some modern lists skip these four in favor of NoSQL types. The relational model is the one most people use today.

Hierarchical model

In a hierarchical model, records form a tree. Each child record has one parent, and a parent can have many children. Access usually starts at the root and moves down through the tree. The model fits one-to-many relationships well, such as a department with many employees. A record that belongs under two parents does not fit, and many-to-many relationships need workarounds. IBM’s IMS, from the late 1960s, is the best-known example, and some legacy systems still run on it.

Network model

The network model also links records, but a record can have several parents. That makes many-to-many relationships possible without workarounds. The CODASYL work of the early 1970s defined it. Programmers usually navigated from one record to the next, which made the design and code more complicated. Relational systems largely replaced network databases during the 1980s.

Relational model

E. F. Codd described the relational model in a 1970 paper. Data is stored in tables, where rows hold records and columns hold attributes. Keys link tables together. For the difference between a primary and a foreign key, see what is a pk and fk. Queries are written in SQL. Because a query describes the data wanted rather than the steps to fetch it, the physical layout can often change without rewriting the queries.

Designing good tables usually involves normalization, which is covered in what is the role of normalization in database design.

Object-oriented model

The object-oriented model stores data as objects, which have attributes and methods and belong to classes. It was popular in the 1990s and matches object-oriented programming closely. Object-oriented database systems stayed a niche choice, and most object features now appear inside relational products.

Comparing the four

Model How records connect Typical use today
Hierarchical Each record has one parent Legacy systems, such as IBM IMS
Network Records can have several parents Largely replaced by relational systems
Relational Tables linked by keys Most SQL databases and applications
Object-oriented Objects with attributes and methods A niche; object features are added to relational products

Why lists differ

These four are one way of grouping the models, so other lists differ. A list that uses a flat model swaps it in for object-oriented. A list aimed at modern systems names document, key-value, wide-column and graph models instead. For that view, see what are the 5 common database models.

The complete guide to data models and dbms types

What Are the Types of Data Models in DBMS?
Read the guide

Keep exploring

Guides from other topics

All topics →