Fidelity Investments Interview Question

SQL based questions OOPs concept