Spiegato, Home

Technology and Gadgets

What Is Data Hierarchy?

  • Published by Spiegato
  • 2 min read

Data hierarchy is the hierarchical grouping of data, in which one piece of datum leads to a layer of data, which leads to another layer under that. Each layer gets more specific, until the user finds exactly what he or she wants. Aside from helping the user find information, it also is used to create correct responses from programming languages based on user input. Data hierarchy is most often used to catalog data in databases, but it also is found in other programming schemas.

In data hierarchy, all data have their own hierarchy, starting from a broad top level and working through to a specific bottom level. For example, someone wants to find a video game title in a database. The hierarchy starts with the video game console type, then the game developer, then the genre, the starting letter of the game name and, finally, the game itself. Cataloging data in this way makes it easier to find. It also makes it easier on the database when new information is added by ensuring that datum is only entered in the correct category.

While all databases have a data hierarchy, they are usually programmed in different ways depending on the database model. For example, in the hierarchical database model, the administrator has to insert each piece of datum into either a parent or child node. The parent is a broad category, while the child is the table that comes after the parent. In the relational model, data are related to one another so, when someone selects one table, related tables will appear.

By placing data in separate hierarchies, it makes it easier to add to the database or programming language. If the programmer wants to add a new video game made for one console to the video game database, it can be difficult to organize, because the game developer often works with several different consoles at once. By following the hierarchy, he or she will know exactly where to place this new data.

Programming languages also use data hierarchy, but in a different way. With programming languages, the driving force is user interaction. The program may ask the user what he or she is looking for, or what his or her preferences are. The hierarchy will tell the program to react in a certain way or to open a branch of data, depending on what the user clicks or enters. Data hierarchy, in this regard, is usually split into different programming objects, so each hierarchy is its own encapsulated unit.

Key terms in this article

Related articles

  • What is Hierarchical Storage Management?

    Hierarchical storage management (HSM) provides a means for organizations to organize data storage and retrieval into separate tiers for cost management…

  • What Is the Role Hierarchy?

    A role hierarchy is an organizational term most often used in databases and computer security systems. Users possess escalating roles that branch upward…

  • What Is Memory Hierarchy?

    Memory hierarchy is the hierarchy of memory and storage devices found in a computer. Often visualized as a triangle, the bottom of the triangle represents…

  • What Is a Hierarchical File System?

    A Hierarchical File System (HFS) is used to arrange and organize digital information on a computer through a series of folders and sub-folders. The…

  • What Is a Hierarchical Database Model?

    The hierarchical database model is one of the first database models to receive wide acceptance, primarily because of its ability to relate one section of…