SAP Concur interview question

multiple sql joins, string processing