HSBC interview question

Sql Queries