I would like to convert all values in a column from "hh:mm:ss.mmm" to "ss.mmm".
I have tried TIME_FORMAT(
Duration, 's%.f%)
but this shows the seconds and milliseconds and doesn't keep calculate the correct seconds when values are over 1 minute.
Alternatively I could use the difference between the start and end columns, as long as it returned the time in "ss.mmm". I have tried this using TIMESTAMPDIFF(microsecond,
Start,
End)as diff
but it is to milliseconds and I don't know how to convert it to "ss.mmm". And when specifying second instead of microsecond it loses the milliseconds.
Thanks :)