HSBC interview question

Basic Unix and SQl queries