Fidelity Investments Interview Question

Sql based queries