0
Using a DB2 database
I need to automate a query and currently have the following scenario:
SELECT * FROM tabela WHERE DATA1 < '2020-06-01' AND DATA2 >= '2020-05-01'
How to make date conditions always be:
DATA1 = the first day of the following month
DATA2 = the first day of the current month