1
I’m trying trouble with something I think until simple, but I don’t know which command I should run to do this.
All right, here we go: I have a table (let’s call MOVIES) ...and this table has 3 columns.
What I need:
I need to sum all the values in column 2 of this MOVIES table and divide by the total number of values. That is, let’s assume that my second column has 3 values: 2, 3 and 4.
I need to add these 3 values and then divide by 3.
Thus: (2+3+4)/3.
I even know how to take the sum with the cursor in Count. But, I do not know how to recover the sum (use SUM) in the form of a value that I may be dividing by the total number.
Breaking would need it to only add up the items in column 2, whose value in column 3 is 0. But, I can see later, if you help me recover the sum of the columns so I can divide by the total would be helpful.
João Paulo, go to Ajuda and take the Tour, see how you should ask here at SOPT, then edit your question and add part of your code and table (if you have), so it will be easier to help you!
– Leo