Proc Id Start_time end_time Status
111 7/4/2017 9:08:43 AM 7/4/2017 9:35:54 AM Success
I want to find the time duration(in Mins) between the star_time and end_time. Please help me how to do it?
Proc Id Start_time end_time Status
111 7/4/2017 9:08:43 AM 7/4/2017 9:35:54 AM Success
I want to find the time duration(in Mins) between the star_time and end_time. Please help me how to do it?
You can try with this one...
SELECT TIMESTAMPDIFF(MINUTE,tmp.start_time,tmp.end_time) FROM (select start_time,end_time from table_name where id=?) as tmp;
SELECT TIMESTAMPDIFF(MINUTE,STR_TO_DATE(Start_time,'%d/%m/%Y %H:%i:%s),STR_TO_DATE(end_time,'%d/%m/%Y %H:%i:%s)) from TABLENAME;
Try above query.Hope this will help you.