Infosys interview question

Questions on SQL and Java