I have an SQLite database which contains transactions, each of them having a price and a transDate.
I want to retrieve the sum of the transactions
This another form:
SELECT SUM(price) AS price, STRFTIME('%Y-%m-01', created_at) as created_at FROM records GROUP BY STRFTIME('%Y-%m-01', created_at);