1

I am using the below query to find the time difference in minutes.

SELECT timestampdiff(minute,created_at,now()) 
AS TIMEDIFF

Below is the TIMEDIFF in minutes using the above query

id TIMEDIFF
193996 175
193997 46

But when I try to save the output "TIMEDIFF" into a temporary table as Datatype Integer/datetime/time it saves as a different value. Below is the value retrieved from temporary table saved as integer

id TIMEDIFF
193996 913
193997 913

Can anyone help me to resolve this?

Aarthy
  • 11
  • 2

0 Answers0