A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/dbms/hierarchical-model-in-dbms/ below:

Hierarchical Model in DBMS - GeeksforGeeks

Hierarchical Model in DBMS

Last Updated : 12 Feb, 2025

Database models are critical frameworks in database management systems, dictating how data is structured, stored, and accessed. Among these, the hierarchical model stands out for its tree-like structure where data is organized in parent-child relationships, resembling a family tree. This model, significant in the early development of database systems, enables efficient data retrieval through predefined pathways. Despite its age, the hierarchical model is still pertinent in modern applications that demand rigid hierarchical structures, such as XML data processing and organizational charts. Its capability to manage complex hierarchies effectively makes it invaluable for specific scenarios where performance and data order are prioritized.

Hierarchical Model Working of Hierarchical Model

The hierarchical model organizes data in a manner that mirrors a tree structure with a single root, facilitating straightforward data storage and retrieval processes.

Applications of Hierarchical Model Examples

Example 1: Consider the below Student database system hierarchical model.

Hierarchical model


In the above-given figure, we have few students and few course-enroll and a course can be assigned to a single student only, but a student can enroll in any number of courses and with this the relationship becomes one-to-many. We can represent the given hierarchical model like the below relational tables:

FACULTY Table

Name Dep Course-taught John CSE CA Jake CSE SE Royal CSE DBMS

STUDENT Table

Name Course-enroll Grade Gami CA 2.0 Mary SE 3.0 Mayen SE 4.0

Example 2: Consider the below cricket database system hierarchical model scheme.
 

Hierarchical model


Here, in this example, for each player, there are some set of positions (P_POSITION) he plays, a set of places (P_PLACE), and also a set of birthdates (P_BDATE) of the players. In the above figure, each node represents a logical record type and is displayed by a list of its fields. The child node represents a set of records that are connected to each record of the parent type, which is due to a many-to-many relationship is from child to parent. In the above, figure, the root node PLAYER states that for every player there will be a set of positions, a set of places (only one), and a set of birthdates (which is only one). 

Advantages of the Hierarchical Model Limitations of the Hierarchical Model

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4