문제

I can COUNT text fields with the necessary changes to the below equation, but can neither COUNT nor SUM the number field.

size = number field

ExecuteSQL ( " SELECT SUM ( size ) FROM Albums" ; "" ; "" )

This calculation results in a ? in the data viewer.

도움이 되었습니까?

해결책 2

SOLVED

I used SeedCode's SQLExplorer and came up with this.

ExecuteSQL ( "SELECT SUM (\"size\") FROM \"Albums\"" ; "" ; "" ; "")

Original calculation did not work because SIZE is a reserved word.

Oh, well. Thanks for everyone's input.

다른 팁

Have you tried this :

ExecuteSQL ( " SELECT SUM ( size ) || '' FROM Albums" ; "" ; "" )
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top