Answered
Sum exceeds 32,767
I am trying to find the average call length in our database
of support calls by using "SUM(calltime) AS time_total" and then
dividing that by the number of incidents. The field I am searching
on, calltime, is short integer.
If time_total is more than 32,767, it returns either an error or a negative value depending upon the version of the database I'm using. I understand why this is happening, but can't figure out how to fix it. I can't change the database; it's enormous. Is there some way to specify that time_total needs to be a long integer?
If time_total is more than 32,767, it returns either an error or a negative value depending upon the version of the database I'm using. I understand why this is happening, but can't figure out how to fix it. I can't change the database; it's enormous. Is there some way to specify that time_total needs to be a long integer?
