Link to home
Start Free TrialLog in
Avatar of R_a_V_e_N
R_a_V_e_N

asked on

Substracting TIME values

Hi,

I want to substract two TIME column values, and insert the resultant value in a third TIME column. What is the best way to do this?

I tried using the basic - operator but the resultant value is not a TIME value, so I can not insert it in the third column.

Thanks
Avatar of VGR
VGR

true. The result should be an integer of some sort (after all, it is NOT a time, you understand this ? ;-)

but you could format it to a TIME value using the various "date and time functions"
Also : TIMEDIFF(ARGUMENTS)

(added in 4.1.1.)
in fact, I suggest you simply do SEC_TO_TIME(timediff)
ASKER CERTIFIED SOLUTION
Avatar of VGR
VGR

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial