SQL - add column value to one value
3 answers
Use Mysql function Replace
to remove $
from price, then user SUM
followed by function group by
like
SELECT SUM(REPLACE(Purchase_price,'$','')) AS price from tablename group by purchase_date
http://www.w3resource.com/mysql/string-functions/mysql-replace-function.php
0
source to share