1
I have a query that I use to report hours worked, I tried to use to_char and some other examples I found in stackoverflow.
SELECT CASE WHEN BC.ENTRADA1 IS NULL
THEN 0
ELSE REGEXP_REPLACE(lpad(to_char(BC.ENTRADA1),4,'0'), '([0-9]{2})([0-9]{2})', '\1:\2')
END AS "Ent1"
FROM BCOEXT BC
Returns the following error:
ORA-00932: inconsistent data types: expected NUMBER got CHAR 00932. 00000 - "inconsistent datatypes: expected %s got %s"
I am using Oraclesql and SQL Developer, I thank anyone who can help
If there’s any other way to make that mask it would be helpful.