Answer the question
In order to leave comments, you need to log in
How to sum field values by unique ID in SQL query?
There is a table with the amounts of payments on the debts of counterparties. It is necessary to formulate a query that will sum the values of the amount_of_payment field for each unique id_debt and, as a result, return the total amount of payments for each debt separately. That is, the resulting table should look like this:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question