Is there a way to get a list of months back if a table has this structure:
Table
id | payment | date
1001 200.00 2013-10-11
1001 100.00 2013-11-02
1002 250.00 2014-01-23
1003 320.00 2014-02-02
1004 300.00 2014-03-04
1004 90.00 2014-03-05
1004 50.00 2014-04-21
1005 400.00 2014-04-21
I want to get a list back where the month is unique like so:
Months
2013-10-01
2013-11-01
2014-01-01
2014-02-01
2014-03-01
2014-04-01
Is that doable? Or would I have to have some other kind of query and play with it in PHP?