IBM Interview Question

Advance Java based questions, SQL query