Sorry that I can't post any code but I don't even know where to start trying to code this statement using SQLite.swift, I have searched and searched but not found anything that could help:
Edit: (I am trying to avoid RAW SQL but if no option will revert to it)
select date(InvoiceExpDate,'start of month') as month, sum(PaymentAmount)
from PaySchedules group by month
I have a table named PaySchedules that has a date field (InvoiceExpDate) and a number field (PaymentAmount)
I would appreciate any pointers or code sample.
Thanks!