1
I would like to get the last day of the previous month in a dynamic way. I don’t know how to put the wo.createdtime <= Moth(current_date) something of the kind and this is in milliseconds, complicates even more. If someone can help, would appreciate.
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'
is the last day of the previous month that you have on your chart, or calendar ? if it is from the table, [Edit] the question and put its structure, and example of the data
– Rovann Linhalis
it is the last day of the previous month of the caledario , and the problem is that I have this result in a fixed way and I am not getting through it in a dynamical way
– Claudio Santos