calculate difference of hours in sql code example Example: sql hours between two dates DATEDIFF ( hour, start_date , end_date )