I have a MySQL database table with working time in different countries. I am at a fork and ask if I should convert the current data type for runtime (varchar) to a decimal number.
One aspect that attracts me to the varchar data type is that I do not need to convert the incoming results (parsed through a php script) in seconds, and then back when it is dynamically extracted. My processing of the script ensures that 8 characters last each time, unless the DNF (not finished) of the athlete, which is also the information I would like to keep. DNF is displayed as "DNF" in the results.
So, should the running time be saved as 17: 40.57 or 1060.57? What are the advantages and disadvantages for each? Is there a better data type than what I already assumed was the correct types?
Also, if you choose 1060.57 as your answer, then how will I logically store DNF or DNS?
source share