Calculating Minute between two Dates in MySql.

Posted by vishalneeraj-24503 under Sql Server category on | Points: 40 | Views : 310
If we want to find the difference in terms on minutes,just divide the above result by 60 as below:-

SELECT (UNIX_TIMESTAMP('2013-11-09 00:00:00') - 
UNIX_TIMESTAMP('2012-10-07 00:00:00'))/60 from table_name;

Comments or Responses

Login to post response