1
How to resolve this issue.
ID status valor vencimento clienteID
1220 Pendente 37,00 2019-02-20 2888
3146 Pendente 37,00 2019-03-20 2888
3147 Pendente 37,00 2019-04-07 2888
3148 Pendente 37,00 2019-05-15 2888
3149 Pendente 37,00 2018-06-20 2888
I’m in need of help in the following case.
I have this table above. I need to get the data of the accounts due up to the current month and more of the following month of this client, regardless of the due date, which would be the following:
37,00 2019-02-20
37,00 2019-03-20
37,00 2019-04-07
37,00 2018-06-20
I am not able to do this, I have tried several ways, but list the current year and does not include the past years.
Sorry I didn’t inform the database and language, but it’s Mysql and PHP. I don’t know the date_trunc reference in mysql.
– arhalexandre
Try: maturity < DATE_ADD(DATE_ADD(LAST_DAY(CURRENT_DATE), INTERVAL 1 DAY), INTERVAL 1 MONTH);
– anonimo