Subject | Re: [IBDI] SQL Help |
---|---|
Author | Brian Muegge |
Post date | 2001-03-18T18:34:36Z |
Charlie wrote:
What is the actual error message that you're getting? At first glance, I'd
guess that the problem is the "trunc" function, which is part of Delphi, but
which is not part of the standard user-defined function (UDF) library that
is included with Interbase. Unless you have installed an additional UDF
library that includes the trunc function, Interbase won't know what to do
with it. Although I haven't used it myself, you might want to get a copy of
"FreeUDFLib", which I think includes some rounding and truncating functions.
Hope that helps,
Brian
P.S. - It also looks like you have an extra closing parenthesis on your sum.
> How do I use a select sum statement in an SQL to sum the square feet. I'veCharlie,
> tried:
> select sum(trunc(widthstring + 0.9999) * trunc(heightstring + 0.9999) /
> 144)) but this doesn't work.
What is the actual error message that you're getting? At first glance, I'd
guess that the problem is the "trunc" function, which is part of Delphi, but
which is not part of the standard user-defined function (UDF) library that
is included with Interbase. Unless you have installed an additional UDF
library that includes the trunc function, Interbase won't know what to do
with it. Although I haven't used it myself, you might want to get a copy of
"FreeUDFLib", which I think includes some rounding and truncating functions.
Hope that helps,
Brian
P.S. - It also looks like you have an extra closing parenthesis on your sum.