children data represents the child segment. If an employee has three children, thenthere would be three child segments associated with one employee segment. In ahierarchical database the parent-child relationship is one to many. This restricts a childsegment to having only one parent segment.Advantages and disadvantages of Hierarchical model1.
Since the database is based on the hierarchical structure, the relationshipbetween the various layers is logically simple.2.
:Hierarchical model was the first database model that offered the datasecurity that is provided by the dbms.3.
: Since it is based on the parent child relationship, there is always a linkbetween the parent segment and the child segment under it.4.
: It is very efficient because when the database contains a large number of 1:N relationship and when the user require large number of transaction.Disadvantages of Hierarchical model:1.
: Although it is simple and easy to design, it is quitecomplex to implement.2.
Database Management Problem
: If you make any changes in the databasestructure, then you need to make changes in the entire application program that accessthe database.3.
Lack of Structural Independence
: there is lack of structural independence becausewhen we change the structure then it becomes compulsory to change the applicationtoo.4.
Hierarchical model suffers from the insert, delete andupdate anomalies, also retrieval operation is difficult.
Definition of Network Database ModelA network database model is a database model that allows multiple records tobe linked to the same owner file. The model can be seen as an upside down tree wherethe branches are the member information linked to the owner, which is the bottom of thetree. The multiple linkages which this information allows the network database model tobe very flexible. In addition, the relationship that the information has in the networkdatabase model is defined as many-to-many relationship because one owner file can belinked to many member files and vice versa.