Fidelity Investments interview question

How to join two sql tables Oop Java question