I have a system where tablets perform tasks and report back with what tasks have been completed and when. One of the tablets has come out of sync and the time is 2 days, 3 hours, 31 mins and 31 secs behind, which is messing up my reporting.
Is there an easy way to add the missing time to the fields with a query?
I can identify which fields need to be altered as they are all tied to a single job, so can add WHERE job_id = 998 to the end.
I have had a look around, and can't really make sense of answers provided, and can't afford to mess up and insert the incorrect times.
Just for clarification, I basically have an event that the tablet believes happened at '2015-12-01 07:57:30' but actually happened at '2015-12-03 11:29:01'. I worked that one out manually, but I have over 100 rows that need updating. Something like: UPDATE job_logs SET entry_time = <CURRENT FIELD DATE> ADD <OUT OF SYNC TIME> WHERE job_id = 998;
Any answers are appreciated, additional detail would be preferred as I'm still learning & would like to understand how the solution works...
Thanks in advance!
UPDATE job_logs SET entry_time = <YOUR RIGHT TIME> WHERE job_id = 998?SELECT,INSERT&UPDATEqueries.. It's a learning thing for me.