SQL - Scalar functions - MINUTE
The MINUTE function returns the minute part of a value.
The schema is SYSIBM.
The result of the function is a large integer. If the argument can be null, the result can be null; if the argument is null, the result is the null value.
The other rules depend on the data type of the argument:
Using the CL_SCHED sample table, select all classes with a duration less than 50 minutes.
SELECT * FROM CL_SCHED WHERE HOUR(ENDING - STARTING) = 0 AND MINUTE(ENDING - STARTING) < 50