EY Interview Question

Sql database question and some basic about accounts.