IBM Interview Question

Sql joins and java programming