I am trying to add up columns where the ID are the same. I'm new to MySQL but it appears that Group By is what I need.
Here is my attempt but it gives me a syntax error
|SiteID|StaffID|Holiday|Total
Update SiteStaff
SET Total = SUM(h.Holiday)
GROUP BY h.StaffID
h.? Thats not coming from anywhere.