Calculate difference between two datetimes in MySQL

Calculate difference between two datetimes in MySQL


SELECT TIMESTAMPDIFF(SECOND, '2012-06-06 13:13:55', '2012-06-06 15:20:18')

Convert to minute,hours,days,years using math logic

Questions List - Database