Site icon KSoftLabs

Database Models – Part 1

Database Models Banner

Hierarchical Database Model

In the hierarchical database model data is organized in a tree like structure. Each data has a single parent or a root but each parent or root can have many children records. Records which share same parent or root is known as siblings. Siblings are also sorted in a predefined order. This model is mainly ideal for describing real world relationships where there is a established hierarchy. In this model we can see one-to-one and one-to-many relationships but not many-to-many relationships. This model was designed for mainframe DBMS.

Physical order of the records stored in the storage was depended on this hierarchical structure.

Following is a example of hierarchical database model.

Advantages of Hierarchical database model

Disadvantages of Hierarchical database model

Network Database Model

Network model is an model created based on hierarchical model. But Network model allow for many-to-many relationships for records where in hierarchical model it was not possible. Therefore in this model a record can have multiple children records and a child record can have multiple parent records. This allow to create complex relationships between records.

This model was invented by Charles Bachman.  In 1969 it was developed in to a standard specification by Conference on Data System Languages Consortium. Revised version was published in 1971 and it was used as basis for most of the implementations.

Following is an example for a network database model.

Advantages of Network Model

Disadvantages of Network model

Relational Database Model

Relational Database Model which is first proposed by Edgar F. Codd, is one of the most popular database models used. In this model data is represented as tuples which are then grouped into relations.

The main purpose of this model is to implement a declarative method for specifying data and queries. Here user can directly state what information the database contain and what are the information they need from it. Then the DBMS will automatically create data structures to store data and retrieval procedures to answer the queries by the user.

Most of the relational databases use SQL (Structured Query Language) as the data definition and query language.

Advantages of Relational Model

Disadvantages of Relational Model

Object Oriented Database Model

In the object oriented database model is defined as a collection of objects. It is a combination of capabilities of databases and object oriented programming. Objects can be created and named at one point and the can be called or referenced later same as in Object Oriented Programming.

Advantages of Object Oriented Model

Disadvantages of Object Oriented Model

NoSQL Database Model

NoSQL databases provide a way for retrieval and storage of data which are not in tabular relational fashion. While this type of database exist since 1960s they only got popular in early 21st century. These type of databases are more popular in big data and real time web applications.

There are basically four categories of NoSQL databases

  1. Column
  2. Document
  3. Key Value
  4. Graph

Advantages of NoSQL database model

Disadvantages of NoSQL database model

Part 2 of the Article Click Here

Exit mobile version