Ver Mensaje Individual
  #6  
Antiguo 09-06-2011
Nelet Nelet is offline
Miembro
 
Registrado: may 2003
Ubicación: Picassent - Valencia
Posts: 95
Reputación: 22
Nelet Va por buen camino
Creo que te refieres a esto. Si haces un select * te trae todos los registros y parece ser que tu quieres agruparlos por fecha.

Código Delphi [-]
  with ZQprom do
      begin
        Close;
        SQL.Clear;
        SQL.Add('select fecha, avg(productividad)  from inyeccionoee');
        SQL.Add('where fecha>="'+fechaA+'" and fecha<="'+fechaB+'"');
        SQL.Add('and turno="'+Cbturno.Text+'" group by fecha');
        Open;
      end;
__________________
_____________________________________
And follow me to where the real fun is
Responder Con Cita