HOURS_DIFF
Overview
Returns the number of hours between two timestamps. Result = first argument - second argument (truncated toward zero).
Syntax
Parameters
<end>: DATE or TIMESTAMP type, the minuend.<start>: DATE or TIMESTAMP type, the subtrahend.
Returns NULL if either argument is NULL.
Examples
Related Documentation
- DATEDIFF — general date difference function supporting multiple time units
- DAYS_DIFF, MINUTES_DIFF, SECONDS_DIFF
