-- Apr 25 In-Class Exercise Thread
In our situation, we assume that each of the N machines have an equal amount of tuples. For each machine, we can compute the sum for their portion of the database, and when they are finished, send their sum to a master machine, which is probably the machine that is running the sum in the first place. The master adds up all the different sums that it received, and that value becomes the total sum of all salaries in the EMPLOYEE table.
In our situation, we assume that each of the N machines have an equal amount of tuples. For each machine, we can compute the sum for their portion of the database, and when they are finished, send their sum to a master machine, which is probably the machine that is running the sum in the first place. The master adds up all the different sums that it received, and that value becomes the total sum of all salaries in the EMPLOYEE table.