Different types of Data models | Pixel Shrikzz

 Different types of Data models 




Hierarchical Model


On this kind of information model, the information is prepared right into a tree-like structure that has a single root and the data is linked to the foundation. On this version, the principle hierarchy starts from the root and it expands like a tree that has toddler nodes and further expands in the identical way. In this model the child node has once unmarried discern node but one determine will have a couple of child nodes. Because the information is stored like tree structure on this facts version while data is retrieved the complete tree is traversed from the foundation node. The hierarchical statistics model consists of a one-to-many dating among numerous sorts of statistics. The facts is stored in the form of a record and is attached via hyperlinks.

As an instance- there is an business enterprise that has a demand to shop the statistics of its personnel. The table incorporates the subsequent attributes: employee call, employee code, department name, and remaining call. And the enterprise offers a pc for every employee. So there's a requirement for storing records on a pc that is stored in a separate table. The laptop table store worker code, serial number, and kind. In keeping with the hierarchical statistics model, the worker desk may be taken into consideration as a determine table and a laptop table may be taken into consideration as a toddler node.

Applications of hierarchical model


Hierarchical fashions are generally used as semantic models in practice as many actual-global occurrences of activities are hierarchical in nature like organic systems, political, or social systems. Hierarchical models also are normally used as physical fashions because of the inherent hierarchical shape of the disk storage machine like tracks, cylinders, and many others. There are various examples consisting of facts control system (ims) by using ibm, nomad through ncss, and so forth. 

Example 1: consider the underneath student database system hierarchical model.


Advantages of the hierarchical model :

  • Because the database is primarily based in this structure the relationships among diverse layers are logically simple so, it has a very easy hierarchical database shape.
  • It has information sharing as all information are held in a not unusual database data and therefore sharing of facts becomes realistic.
  • It gives information protection and this version was the first database model that presented data protection.
  • There’s also statistics integrity as it is based at the discern-infant courting and also there’s usually a link between the dad and mom and the child segments.



Disadvantages of the hierarchical model :

  • Even though this model is conceptually simple and clean to layout on the same time it's miles pretty complicated to enforce.
  • This model additionally lacks flexibility because the adjustments within the new tables or segments regularly yield very complex gadget management duties. Right here, a deletion of one phase can lead to the involuntary deletion of all segments beneath it.
  • It has no requirements as the implementation of this version does now not offer any specific popular.
  • It is also confined as the various commonplace relationships do not conform to the 1 to n format as required via the hierarchical model.

Network model


The network model is a type of database model which is designed primarily based on a bendy approach for representing items and the connection exist among items. The schema is very critical inside the network records model which may be represented inside the form of a graph in which a dating is represented the usage of edges and the nodes are used to symbolize objects. 

The primary difference among the hierarchical version and community model is that records is represented in the form of hierarchy in a hierarchical records version whereas in community model the information is represented within the form of a graph. One of the advantages of a network model is that the simple connections also are represented on this facts model. There are different sorts of dating can exist on this facts version like one to 1, many to many, and so forth. The data get admission to turns into easy to evaluate to other information version just like the hierarchical version. 

The determine node and child node are always related as there is constantly a courting exist among figure-infant node. And the information isn't always dependent on the opposite node. One of the key drawbacks of this version is this device isn't always adaptive towards adjustments. It method when there is a demand of a few amendment of gadget it requires to change the complete machine which takes a variety of attempt. And to keep records is tough to element in this model as each document is connected through a few suggestions which makes it difficult to maintain and make the device complex.

This version can encompass multiple discern segments and those segments are grouped as tiers however there exists a logical affiliation between the segments belonging to any degree. Broadly speaking, there exists a many-to-many logical association between any of the two segments. We called graphs the logical institutions among the segments. Consequently, this version replaces the hierarchical tree with a graph-like shape, and with that, there can greater fashionable connections among distinctive nodes. It may have m: n members of the family i.e., many-to-many which allows a document to have multiple discern segment.

Here, a relationship is known as a fixed, and each set is made from at least 2 styles of record that are given below:

  • An owner record this is similar to of parent in the hierarchical version.
  • A member document this is the same as of baby in the hierarchical version.

Advantages of community version :


  • This version is quite simple and smooth to design just like the hierarchical facts version.
  • This version is able to coping with a couple of styles of relationships which can assist in modeling real-lifestyles programs.
  • In this model, we are able to get entry to the statistics effortlessly, and also there may be a chance that the software can get entry to the proprietor’s and the member’s records inside a hard and fast.
  • This community does now not permit a member to exist with out an owner which results in the idea of information integrity.
  • Like a hierarchical version, this version also does not have any database fashionable,



Disadvantages of network model :


  • The schema or the structure of this database may be very complicated in nature as all of the records are maintained by using the use of guidelines.
  • There’s an existence of operational anomalies as there may be a use of pointers for navigation which further results in complex implementation.
  • The layout or the structure of this model isn't always consumer-pleasant.
  • This model does now not have any scope of automated query optimization.
  • This model fails in accomplishing structural independence even though the community database version is capable of reaching facts independence.

The benefits of the community version encompass:


  • Easy concept: much like the hierarchical model, this version is straightforward and the implementation is handy.
  • Capacity to control more relationship sorts: the community version has the potential to control one-to-one (1:1) in addition to many-to-many (n: n) relationships.
  • Smooth get entry to to records: getting access to the records is less difficult while in comparison to the hierarchical model.
  • Statistics integrity: in a network version, there may be always a connection among the discern and the kid segments as it depends at the figure-infant relationship.
  • Facts independence: data independence is better in network models in place of the hierarchical models.
  • The drawbacks of the community version consist of:
  • System complexity: each and every document needs to be maintained with the assist of recommendations, which makes the database structure greater complicated.
  • Useful flaws: because a tremendous range of recommendations is essential, insertion, updates, and deletion come to be extra complicated.
  • Loss of structural independence: a change in structure needs a change in the utility as nicely, which ends up in lack of structural independence.
  • Incomplete flexibility: albeit extra flexible than the hierarchical version, the network one nonetheless cannot fulfill all family members by means of assigning another owner.

E-r  Model


The E-r model is used to explain the database shape using the entity-courting diagram. The e-r version is just like the blueprint of a database which is used to enforce the database. Inside the entity set, the connection exists which can be shown using the er diagram. The entity set consists of a comparable type of entities that include attributes.

The components of the er version are dating set and entity set and attributes. The entity is the thing of facts which is represented as a rectangle within the er diagram. As an instance, there are  entities college and scholar and there exist one too many relationships as there may be a couple of pupil who can go to university.

An ER diagram has 3 principal additives:

1. Entity
2. Attribute
3. Courting


A courting is represented by way of diamond form in E-r diagram, it shows the relationship among entities. There are 4 styles of relationships:

1. One to One
2. One to Many
3. Many to One
4. Many to Many

Post a Comment

Previous Post Next Post