我正在尝试恢复距当前时间超过 5 分钟的记录。这是我到目前为止所拥有的,但它似乎带回了所有记录,而不仅仅是超过 5 分钟的记录:
SELECT COUNT(DISTINCT "DOCUMENT_QUEUE"."DOCUMENT_NUMBER") as "Records"
FROM "MAGINUS"."DOCUMENT_QUEUE" "DOCUMENT_QUEUE"
WHERE to_date('01-JAN-1970', 'dd-MON-yyyy HH:MI:SS') + (DOCUMENT_QUEUE.CREATION_DATE/86400) > sysdate - 38/1440
ORDER BY "DOCUMENT_QUEUE"."DOCUMENT_NUMBER"