A quite powerful way to handle hierarchical model data : recursive SQL !
WITH tmp_table AS
SELECT column1, column2, ...
FROM src_table
WHERE src_table.hierarch_column_id is NULL
UNION ALL
SELECT column1, column2, ...
FROM src_table
INNER JOIN tmp_table
ON src_table.hierarch_column_id = tmp_table.column_id
SELECT *
FROM tmp_table
You can also add meta-information like 1 as n in the first select using src_table and n + 1 in the second join which lets you filter the level.
PostgreSQL, BI, DWH, Hadoop, DevOps, DataOps, Machine Learning, Cloud and others topics !
Labels
Administration
Analytics
Architecture
Aster
Automation
Best practice
BI
Bitcoin
Bug
Business Intelligence
CDO
Data visualization
Databases
DataFlow
DataLake
DataMesh
DataOps
Datawarehouse
Detente
development
DevOps
ElasticSearch
enterpr1se 3.0
ETL
Flume
Fun
Games
Git
Google Cloud Platform
Graph Database
Hadoop
Hadoop 2.0
Hbase
Hive
Impala
Informatica
IoT
Java
Javascript
Jazz
Jenkins
Kafka
linux
Machine Learning
Mahout
MapReduce
Meta Development
Monitoring
Mood
Music
Oozie
Optimisation
performance
Pig
Python
Quality
R
Real Time
Scala
scam
Shark
SolR
Spark
SQL
Standards
Statistics
Stinger
Storm
SVN
Talend
Task
TED
Teradata
Thinking
Ubuntu
Useful
Web development
WTF
Yarn
Zeppelin
Zookeeper