Upon digging around I found a way to make the modulo operator works!
This is illustrated by the below script:
create column table "test_mod"( "test_int" int ); insert into "test_mod" values (5); insert into "test_mod" values (7); --should only returns 5, actually filters out 7 now! select * from "test_mod" where (0 = mod(5, "test_int")); --correctly returns 0 and 5 select mod(5, "test_int") from "test_mod"; --clean up drop table "test_mod";
Evidently, for 1.00.51 DB version, it turns out that modulo operator works on int data type, and not on bigint!
Anyway, thanks to information from Krishna's comment, we are moving our DB version to 1.00.70.
Cheers,
Hai