I want to update my date column, need to add 35 seconds. I used this query:
UPDATE temp_table SET dpdate = dpdate + 35 / 86400 ;
Here is the problem:
EXISTING AFTER Update
-------------------- --------------------
02-JUN-2017 02:06:13 02-JUN-2017 02:06:48
02-JUN-2017 02:06:14 02-JUN-2017 02:06:49
19-MAY-2017 02:05:47 19-MAY-2017 02:05:22
Note: I ran the above query, and all results below are after running that update query.
In the first two lines, it worked fine, but in the last one, it should come to 02:06:22 but it is 02:05:22.
When I do order by date, 19-MAY-2017 02:05:47 comes first and then 19-MAY-2017 02:05:22.
Not sure why the minute field is not incremented, and how in order by, 19-MAY-2017 02:05:47 comes first.
Few examples of order by, the first four are correct, but you can see the problem with last 2:
A 01-DEC-2014 12:12:00
C 01-DEC-2014 12:12:35
A 01-JUL-2016 05:07:33
C 01-JUL-2016 05:07:08
A 29-JAN-2016 04:01:08
C 29-JAN-2016 04:01:43
A 26-FEB-2016 04:02:09
C 26-FEB-2016 04:02:44
A 11-MAR-2016 03:03:13
C 11-MAR-2016 03:03:48
A 08-APR-2016 04:04:35
C 08-APR-2016 04:04:10
My question: Why the minute field is not updated?