sql hours gap between two dates code example Example: sql hours between two dates DATEDIFF ( hour, start_date , end_date )