AlertEnterprise interview question

Sql oops and based on project