M3 Interview Question

how to do a sql join