Your SQL product performs integral division because both operands are integers. ELAPTIME
's integer type is determined be the table structure and 60
is automatically assumed to be integer because it has no decimal point.
There are two methods of resolving the issue:
Convert either operand to a non-integer numeric type explicitly:
CAST(ELAPTIME AS float) / 60
Write
60.0
instead of60
so that the parser can see you are not dividing an integer by an integer:ELAPTIME / 60.0