NucleusTeq Interview Question

1. joins, limit usuage in select statement, given two tablels and ask a query to write 2. asked about java basics and given a output and asked for the different kinds of approach