I want to get the different between two TIMPSTAMP
in a function.
Input function: n_LECT_DATE_TIME_START and n_LECT_DATE_TIME_END.
Output function: (n_LECT_DATE_TIME_END - n_LECT_DATE_TIME_START) in hours. (number?)
This code not work... I got 2 errors:
Error(5,5): PL/SQL: Statement ignored
and
Error(5,13): PLS-00382: expression is of wrong type
.
FUNCTION check_time(n_LECT_DATE_TIME_START AF_LECTURE.LECT_DATE_TIME_START%TYPE,
n_LECT_DATE_TIME_END AF_LECTURE.LECT_DATE_TIME_END%TYPE)
RETURN number IS
BEGIN
RETURN n_LECT_DATE_TIME_END - n_LECT_DATE_TIME_START;
END check_time;
AF_LECTURE.LECT_DATE_TIME_END and AF_LECTURE.LECT_DATE_TIME_START type is TIMESTAMP.