like for example.
this month is December 2012 and as we know all the sundays in this month of 2012 are 2,9,16,23,30.
can anyone please tell me how to get all the days of sundays like as shown below in a month using mysql query?
_ _ _ _ _ _
| Sundays |
|- - - - - -|
| 2 |
| 9 |
| 16 |
| 23 |
| 30 |
- - - - - -
Here is a SQLFiddle demo