SAP Interview Question

SQL query