Hello!
I got a query than requires a date with specific date format MM/YYYY
SELECT WO.WORKTYPE || ' - ' || WT.WORKTYPENAME AS DESCRIPCION,
COUNT(WO.WORKORDER) AS PETICIONES
FROM WORKORDER WO
INNER JOIN WORKTYPE WT ON WT.WORKTYPE = WO.WORKTYPE
AND WO.COMPANY = WT.COMPANY
WHERE WO.COMPANY = 'GESTIONESP'
AND TO_CHAR(WO.WORKREQUESTDATE, 'MM/YYYY') = :startDate
AND WO.BUSINESSUNIT IN (:listSites)
GROUP BY WO.WORKTYPE, WT.WORKTYPENAME
ORDER BY WO.WORKTYPE, WT.WORKTYPENAME
but this format is not valid if the DataType is DateTime....
I guess is ok to just use string as DataType in this case