I would like to get the last day of the previous month in a dynamic way. I do not know how it is that I will by wo.createdtime <= Moth(current_date)
something like that and this is in milliseconds, it complicates even more. If anyone could help, thank you.
SELECT wo.WORKORDERID AS "Request ID",
FROM WorkOrder wo
WHERE > (((wo.CREATEDTIME >= 1527807600000)
AND ((wo.CREATEDTIME != 0)
AND (wo.CREATEDTIME IS NOT NULL)))
AND ((wo.CREATEDTIME <= 1530399599000)
AND (((wo.CREATEDTIME != 0)
AND (wo.CREATEDTIME IS NOT NULL))
AND (wo.CREATEDTIME != -1))))
AND wo.ISPARENT='1'
AND wo.IS_CATALOG_TEMPLATE='0'