My query is adding extra rows to the output and I don't understand why. I know that is must me something simple, but I am very new to programing and can not figure out what is creating the extra row.
SELECT u.firstname AS 'First Name', u.lastname AS 'Last Name', sum(bh.service_hrs) AS 'Total Billable Hrs', sum(ph.service_hrs) AS 'Total PTO Hrs', sum(hh.service_hrs) AS 'Total Holiday Hrs'
FROM users AS u
JOIN billable_hrs AS bh ON (bh.user_id = u.user_id)
JOIN pto_hrs AS ph ON (ph.user_id = u.user_id)
JOIN holiday_hrs AS hh ON (hh.user_id = u.user_id)
GROUP BY u.user_id, bh.service_hrs, ph.service_hrs, hh.service_hrs
billable_hrs
pto_hrs
holiday_hrs
Query Results