I need to select the defaulting companies from my table (those who doesn't register a payment since october)
This is an example of what my table looks like:
id | company_id | deposit_date | year | month |
---|---|---|---|---|
1 | 578 | 2021-10-12 | 2021 | 10 |
2 | 254 | 2021-11-17 | 2021 | 11 |
3 | 465 | 2021-12-15 | 2021 | 12 |
4 | 159 | 2022-01-12 | 2022 | 1 |
I must use month as reference and not deposit_date
Any help will be much appreciated. Thanks in advance.