SELECT (UNIX_TIMESTAMP('2013-11-09 00:00:00') - UNIX_TIMESTAMP('2012-10-07 00:00:00'))/3600 from table_name;
Login to post response