I have a table with column timestam which stores a timestamp with this format: “2012-12-10 21:24:30”
I am looking for a SQL Query that takes the current timestamp and subtracts it with the one in the column and gives the difference in this format:
“3 Hours and 2 mins Remaining”
Looking for a MySQL Query that does that.
use
TIMESTAMPDIFFmy approach : set unit as SECOND and then use SEC_TO_TIME
update
Return yes if
HourDifferenceare less than 48 hours? otherwise no