Why doesn't this sum of percentages add up to 100%?
问题 I have a series of calculation times in a DB2 SQL DB that are stored as float with a default value of 0.0. The table being updated is as follows: CREATE TABLE MY_CALC_DATA_TABLE ( CALCDATE TIMESTAMP, INDIV_CALC_DURATION_IN_S FLOAT WITH DEFAULT 0.0, CALC_TIME_PERCENTAGE FLOAT WITH DEFAULT 0.0 ) Using a sproc. I am calculating the sum as follows: CREATE OR REPLACE PROCEDURE MY_SCHEMA.MY_SPROC (IN P_DATE TIMESTAMP) LANGUAGE SQL NO EXTERNAL ACTION BEGIN DECLARE V_TOTAL_CALC_TIME_IN_S FLOAT