Creating a hierarchy in SAP HANA