Data Models in DBMS

Data Models in DBMS:

In this article, I am going to discuss Data Models in DBMS. Please read our previous article where we discussed Database Management Terminology. At the end of this article, you will understand the following pointers.

  1. What are Data Models in DBMS?
  2. HDBMS (Hierarchical Database Management System) or Hierarchical Data Model
  3. Advantages and Disadvantages of Hierarchical Data Model
  4. NDBMS (Network Database Management System) or Network Data Model
  5. Advantages and Disadvantages of Network Data Model
  6. RDBMS (Relational Database Management System) or Relational Model
  7. Features of RDBMS
  8. One – One, One – Many / Many – One, and Many – Many Relationships
  9. Advantages and Disadvantages of Relational Data Model
  10. Object-Relational database management system (ORDBMS)
  11. Object-Oriented Database Management System (OODBMS)

In a database, data are stored in form of a table. The table is basically the details of the entities related to the database. The entity is a terminology that is closely associated with the persons who are engaged with the enterprise. For database design, we have to find the entity and its details. The details are collected and stored as a term called an attribute. The attributes are the column of the table. This table is also termed as relation. The main blueprint of the design is Schema. We have to first create the schema of any table then we have to design through this. there are also two kinds of scheme

  1. Logical Schema: It contains all the logical data and related terms. Likewise, it is used to create tables, views, etc.
  2. Physical Schema: It contains the actual storage of data and other disk capacities.

These relations are designed as the main connection of entities. The relationships between entities are designed through a database model. The base of any kind of database designing is this.

DBMS Models or Database Models:

A set of rules and standards that define how the database organizes/stores data is called a database model. It is also defining how users view the organization of data. There are three types of database models.

  1. Hierarchical Database Management System (HDBMS)
  2. Network Database Management System (NDBMS)
  3. Relational Database Management System (RDBMS) (Object-Relational DBMS (ORDBMS) and Object-Oriented Relational DBMS (OORDBMS))
HDBMS (Hierarchical Database Management System) or Hierarchical Data Model:

It is the first model of database that came into existence in the 1960s which will organize the data in the form of a tree structure and this was design based on “one-many relation”.

In a “one–many” relation every child is having only one parent. This tree is containing the following three-level root, parent, and child level. Example: IMS Software (information management system).

In this model, the records are connected with a link. The records are the data about any entity. For example, if we consider any employee of any company, all the details are termed as records. Now, these records are basically designed inboxes and the link between them are designed as lines. It looks like tree alike structure and is designed in levels.  From higher level to lower the data consistency increases. 

HDBMS (Hierarchical Database Management System) or Hierarchical Data Model

Advantages of Hierarchical Data Model:
  1. Efficient storage for data that have a clear hierarchy.
  2. Parent/Child relationship promotes conceptual simplicity & data integrity.
  3. It promotes data sharing.
  4. It is easy to understand and use.
Disadvantages of Hierarchical Data Model:
  1. When we want to add a new level (parent/child) to an existing Structure then the user has to reconstruct the entire structure so that it leads to time-consuming.
  2. When we want to access data from this model then we need to Travel from root level to child level which will time taken process.
  3. This model was designed based on a “one–many” relation i.e. every child is having only one parent so that there is a chance to occur Data duplicate.
Example:

Hierarchical Data Model

NDBMS (Network Database Management System) or Network Data Model:

This model is a modification of an existing hierarchical model bringing “many – to – many“ relation so that a child can have more than one parent which will reduce duplicate data.in 1969 the first NDBMS software was launched with the name “IDBMS” (Integrated Database Management System).

Example:

NDBMS (Network Database Management System) or Network Data Model

Advantages of NDBMS:
  1. To reduce duplicate data because supporting many – many
  2. Relation (a child can have multiple parents)
  3. By using the pointers mechanism, we can add a new level (parent/child) to an existing structure without reconstruction.
  4. Accessing data in this model is very fast because it uses pointers.
Disadvantages of NDBMS:
  1. When we use a number of pointers in an application then it will increase complexity(difficult) to identifying which pointer is belongs to which parent or which child and also degrade performance.
  2. NDBMS model was not a more successful model in real-time because of immediate take over by the RDBMS model in the 1970s with Effective features.
RDBMS (Relational Database Management System) or Relational Model:

In HDBMS and NDBMS data is organized in the form of a tree structure that looks complex to manage and understand also. So to overcome this problem in 1970’s Mr. E.F.Codd from IBM came with a new concept for storing data in a table structure i.e. Rows and columns format.

E.F.Codd with all these ideas for the new model called “relational model” has published an article with the title “a relational model of data for large shared data bank”.

Based on this above article many companies came forward like IBM, relational software INC (present it is oracle cor.), etc. Has started the design for the new database model i.e. RDBMS.

RDBMS is mainly based on two mathematical principles are “relational algebra” and “calculations”.in the year 1970’s IBM has given the prototype for RDBMS known as “system r”.

In the year 1974 IBM has launched a language for communication with RDBMS known as “sequel” and later changed it to “SQL”.

Features of RDBMS:
  1. Data can be organized in table format.
  2. More security with the help of “authentication & authorization”.
  3. Reduce data redundancy & data inconsistency using normalization.
  4. Easy to manipulate data using DML commands.
  5. Easy to access data from database with the help of “SQL query (select)”.
  6. Fastly retrieve data using “indexes “.
  7. Data sharing using “views “.
  8. Supporting transactions with “ACID Properties”.
  9. Supporting datatypes, operators, functions/procedure, clauses, etc.
  10. Supporting all relationships those are “one – one”,” one – many /many – one”, and “many-many”.
  11. Supporting data integrity rules with constraints & triggers
  12. Supporting SQL & PL/SQL languages.
EXAMPLE OF RDBMS PRODUCT:

ORACLE, SQL SERVER, MYSQL, DB2, SYBASE, INFORMIX, INGREES, TERADATA, MAXDB, POSTGRESQL …ETC

RDBMS (Relational Database Management System) or Relational Model

Here relation can be defined as commonness between objects these relations are classified into 3 types

  1. One to One relation
  2. One to Many relation / Many to One relation
  3. Many to Many relations
One – One relationship:

In this relationship, one object can have a relationship with another object

One – One relationship

One – Many / Many – One relationship:

In this relationship, one object can have a relationship with many objects.

One – Many / Many – One relationship

Many – Many Relationships:

In this relationship, many vendors (or) many objects can have a relationship with many other objects.

Many – Many Relationships

Note: HDBMS and NDBMS models are outdated models in real-time.

Advantages of Relational Data Model:
  1. Changes in a table’s structure do not affect data access or application program.
  2. Tabular view substantially improves conceptual simplicity, thereby promoting easier database design, implementation, management, and use.
  3. Have referential integrity controls to ensure data consistency.
  4. RDBMS isolates the end-users from physical level details and improves implementation and management simplicity.
Disadvantages of Relational Data Model:
  1. Conceptual simplicity gives relatively untrained people the tools to use a good system poorly.
  2. It may promote islands of information problems as individuals and departments can easily develop their own applications.
Object-Relational database management system (ORDBMS)

This model is completely depending on “SQL”. Data can be stored in “Table” format.
       Table = collection of rows & columns
       Row = collection of columns
Example: Oracle, SQL Server, MySQL, Db2, etc.

Object-Oriented Database Management System (OODBMS)

This model is called “NO SQL” and this model work based on “oops”. Data can be stored in “object”. Example: MongoDB, Casandra, etc.

In the next article, I am going to discuss Introduction to RDMB (Relational Database Management System). Here, in this article, I try to explain Data Models in DBMS and I hope you enjoy this Data model in DBMS article.

Leave a Reply

Your email address will not be published.