I am getting
ORA-06502 PL/SQL numeric or value error
when I am trying to execute this statement from Report Builder 6i and Oracle database 11g.
select to_char(to_date(lateby, 'sssss'), 'mi:ss')
from attendancelogs
where emp_no = :emp_no
and attendancedate = :dat;
late number(15);
The same statement when run under SQL*Plus is running fine without any error and fetching values the way I want.
Any help will be much appreciated.
Regards, Mac
It might be a Reports bug, I don't know, but as a workaround you could try wrapping this into a stored procedure in the database as follows:
Then in the Reports Code:
Alternatively, something like (not tested):