Report question

Question: Invalid use of group function while updating a table with sum function