Data hierarchy


Data hierarchy refers to the systematic organization of data, often in a hierarchical form. Data organization involves characters, fields, records, files and so on. This concept is a starting point when trying to see what makes up data and whether data has a structure. For example, how does a person make sense of data such as 'employee', 'name', 'department', 'Marcy Smith', 'Sales Department' and so on, assuming that they are all related? One way to understand them is to see these terms as smaller or larger components in a hierarchy. One might say that Marcy Smith is one of the employees in the Sales Department, or an example of an employee in that Department. The data we want to capture about all our employees, and not just Marcy, is the name, ID number, address etc.

Purpose of the Data Hierarchy

"Data hierarchy" is a basic concept in data and database theory and helps to show the relationships between smaller and larger components in a database or data file. It is used to give a better sense of understanding about the components of data and how they are related.

Components of the Data Hierarchy

The components of the data hierarchy are listed below.
A data field holds a single fact or attribute of an entity. Consider a date field, e.g. "19 September 2004". This can be treated as a single date field, or three fields, namely, day of month, month and year.
A record is a collection of related fields. An Employee record may contain a name field, address fields, birthdate field and so on.
A file is a collection of related records. If there are 100 employees, then each employee would have a record and the collection of 100 such records would constitute a file.
Files are integrated into a database. This is done using a Database Management System. If there are other facets of employee data that we wish to capture, then other files such as Employee Training History file and Employee Work History file could be created as well.

Illustration of the data hierarchy

An illustration of the above description is shown in this diagram below.
The following terms are for better clarity.
With reference to the example in the above diagram.
Data field label = Employee Name or EMP_NAME
Data field value = Jeffrey Tan
The above description is a view of data as understood by a user e.g. a person working in Human Resource Department.
The above structure can be seen in the hierarchical model, which is one way to organize data in a database.
In terms of data storage, data fields are made of bytes and these in turn are made up of bits.