i want to ask how to showing the date from first date of the month until end of date of the month for example i want to showing date from 2021-01-01 until 2021-01-30. i want join this data with my other table.
iam using MYSQL V5.7
i want this result ::
| 2019-01-01 |
| 2019-01-02 |
| 2019-01-03 |
| 2019-01-04 |
| 2019-01-05 |
| .......... |
| .......... |
| 2019-01-31 |
i try using this Query but doesn't work
SELECT DATE(DATE_SUB(CURRENT_DATE, INTERVAL DAYOFMONTH(CURRENT_DATE)-1 DAY) BETWEEN DATE(NOW()))
Thanks for the answer