Hierarchical and recursive queries in SQL
A hierarchical query is a type of SQL query that handles hierarchical model data. These are useful for working with databases of graph-structured data, such as river networks, file system trees, or threaded comments.
Source: Wikipedia — Hierarchical and recursive queries in SQL (CC BY-SA 4.0)