Bank of America interview question

Basic SQL language