Santander Interview Question

Had to write down Various SQL statements