Answer the question
In order to leave comments, you need to log in
How to get the sum of the values produced in each row in a MYSQL query?
Let's say we have a table
price | new_price
10 15
20 25
30 35
Answer the question
In order to leave comments, you need to log in
select sum(new_price - price) as total from prices;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question