This document describes how to flatten hierarchical employee data stored in an Oracle database table into normalized columns using a single SQL query. It involves using SYS_CONNECT_BY_PATH to concatenate the employee names and roles into path strings, extracting the levels using regular expressions, and pivoting the results into columns labeled by role (e.g. "PROJECT_MANAGER", "DBA", etc.) using DECODE. The technique allows flattening of hierarchical data without complex joins or recursion.