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