SAP interview question

SQL to get Hierarchy