CRED Interview Question

SQL questions based on some scenarios.