Navigation
  • Home
  • Recent
  • Most Active
  • Popular
  • Blog
  • Credits
  • RSS
  •   Interaction
  • Register
  • Statistics
  •   Help
  • Suggestions
  • Contact Us
  • How to Edit
  • Help



  • [Edit]



    In a hierarchical data model, data is organized into a tree-like structure in such a way that it cannot have too many relationships. The structure allows repeating information using parent/child relationships. All attributes of a specific record are listed under an entity type. In a database, an entity type is the equivalent of a table; each individual record is represented as a row and an attribute as a column. Entity types are related to each other using 1: N mapping, also known as one to many relationships.

    An example of a hierarchical data model would be if an organization had records of employees in a table (entity type) called "Employees". In the table there would be attributes/columns such as First Name, Last Name, Job Name and Wage. The company also has data about the employee’s children in a separate table called "Children" with attributes such as First Name, Last Name, and DOB. The Employee table represents a parent segment and the Children table represents a Child segment. These two segments form a hierarchy where an employee may have many children, but each child may only have one parent.

    Hierarchical structures were widely used in the first mainframe database management systems. However, owing to their restrictions, they often cannot be used to relate structures that exist in the real world. Hierarchical relationships between different types of data can make it very easy to answer some questions, but very difficult to answer others. If a one-to-many relationship is violated (e.g. a patient can have more than one physician), then the hierarchy becomes a network.

    While the hierarchical model is rare in modern databases, it is common in many other means of storing information, ranging from filesystems to the Windows registry to XML documents.


        Hierarchical model
            Tree Data structure in Relational Model
            Some Well-known Hierarchical Databases
            See also

    top

    Tree Data structure in Relational Model

    Chapter 23 'Logic-Based Databases' of An Introduction To Database Systems by C.J.Date seventh Edition

    In Relational Database model, an example of hierachical data could be displaying the hierarchy of departmental responsibility or 'who reports to whom'.

    Consider the following table:



    Their hierarchy stating EmpNo 10 is boss of 20 and 30,40 report to 20 is represented by following table:



    In the example above if a person does not report to 2 bosses then the tree of hierarchy is of type 'Achild has only oneparent'. Now, let us see the hierarchy of 'A child with many parents'. The simple example is the 'Bill Of Material' of Engineering Assembly.

    A Car Engine could have 2 different assemblies both having similar parts,
    Consider the following table:



    Assembly Hierarchy is described in the following table,



    PatNum 90 has 2 parents, as it is present in both assemblies.

    top

    Some Well-known Hierarchical Databases


    top

    See also

     
    Search more:
     

       
    Source Privacy License Download Contact Us Atlas
    Scientus.org Dictionary (Yet Another Wiki) RC : 1.39
    MIT OpenCourseWare
    This article is licensed under the GNU Free Documentation License [copyleft]. It uses material from the Wikipedia article "Hierarchical model". link