KPMG Interview Question

Join two table in sql