Hola
La verdad no entiendo, yo lo haria asi:
Código Delphi
[-]
ZQueryc.Close;
ZQueryc.SQL.Text:= 'select categoria, sum(cargo) as cargo1, sum(abono) as abono1 from apuntes'+
' where FechaA between :Fech1 and :Fech2 group by categoria';
ZQueryc.ParamByName('Fech1').Value := strtodate('20/03/2010');
ZQueryc.ParamByName('Fech2').Value := strtodate('20/04/2010');
ZQueryc.Open;
A ver....
Saludos