Returns a number from 0 to 23 corresponding to the hour component of the specified date/time.
HOUR ( datetime-expression )
datetime-expression The date/time.
The following statement returns the value 21:
SELECT HOUR( '1998-07-09 21:12:13' ) FROM iq_dummy