UKG Interview Question

SQL sum and join statements