Ver Mensaje Individual
  #2  
Antiguo 06-11-2003
Avatar de guillotmarc
guillotmarc guillotmarc is offline
Miembro
 
Registrado: may 2003
Ubicación: Huelva
Posts: 2.638
Reputación: 24
guillotmarc Va por buen camino
Hola.

Puedes hacer algo de este estilo :

Código:
select CLI_ID, CLI_NOMBRE, CLI_APELLIDOS
from CLIENTES
     inner join FACTURAS on FAC_CLI_ID = CLI_ID and FAC_FECHA between :DESDE and :HASTA
group by CLI_ID, CLI_NOMBRE, CLI_APELLIDOS
having sum(FAC_TOTAL) > 3000
Saludos
__________________
Marc Guillot (Hi ha 10 tipus de persones, els que saben binari i els que no).

Última edición por guillotmarc fecha: 06-11-2003 a las 14:02:06.
Responder Con Cita