Tavant Interview Question

MySQL java puzzless