Ver Mensaje Individual
  #5  
Antiguo 13-04-2010
Avatar de Caral
[Caral] Caral is offline
Miembro Premium
 
Registrado: ago 2006
Posts: 7.659
Reputación: 27
Caral Va por buen camino
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
__________________
Siempre Novato
Responder Con Cita