With mysql i am trying to fetch amount which is donated last year only,
for exampe: this is my sample table. here i would like to fech amount which is donated in last year only. here most recent donation is done on oct-14, so i want data from oct -14 to oct - 13 and not sep -13
+--------+-------+------+---------+
| nid | amount | time | month |
+--------+-------+------+---------+
| X | 30 | |sep-13 |
+--------+-------+------+---------+
| X | 30 | |sep-13 |
+--------+-------+------+---------+
| A | 10 | |oct-13 |
+--------+-------+------+---------+
| A | 10 | |oct-13 |
+--------+-------+------+---------+
| B | 20 | |oct-14 |
+--------+-------+------+---------+
| C | 20 | |oct-14 |
+--------+-------+------+---------+