I am trying to write a query that will sum the total of payments to invoices and create a new table with these totals.
The fields are: DUEDATE, INVNUM, NAME, PAYMENT
The table contains multiple transactions to one INVNUM (IE an opening balance - payment + credits, etc). I want to sum these...