create cursor Schnaps; ( a c(1), ; b c(1),; c c(1) ; ) insert into Schnaps values ('', 'x', 'y') insert into Schnaps values ('', 'x', 'y') insert into Schnaps values ('a', 'x', 'y') insert into Schnaps values ('b', 'x', 'y') insert into Schnaps values ('c', 'x', 'y') select count(*) as nCnt; from Schnaps ; into cursor SchnapsTmp; where empty(a) select Schnaps && report cursor = Schnaps, use SchnapsTmp.nCnt as field in summaryAgnes