select
CREATION_DATE,
APPROVED_DATE,
REQUISITION_NUMBER,
from POR_REQUISITION_HEADERS_ALL
where
CREATION_DATE >= '2021-4-11'
and APPROVED_DATE Is NOT null
Is there any way to subtract APPROVED_DATE - CREATION_DATE
and get the difference of days and mins and seconds into days?
The error I got when I try
inconsistent datatypes: expected NUMBER got INTERVAL DAY TO SECOND
- CREATION_DATE 2021-04-13T21:27:56.089+00:00
- APPROVED_DATE 2021-04-20T08:18:04.222+00:00
The output I want would be 6.9 days
for example
There is any help thanks anyway.