Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > SQL
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 27-06-2008
Avatar de enecumene
[enecumene] enecumene is offline
Miembro de Oro
 
Registrado: may 2006
Ubicación: Santo Domingo, Rep. Dom.
Posts: 3.040
Poder: 24
enecumene Va por buen camino
Código SQL [-]
select I.CLV_ART, CAMPOSTRU1, I.CAMPOSTRU3, CAMPOINTU,CAMPODBL4,CAMPODBL8,
(select sum(MI.CANT) suma from  tablaInt MI 
    where MI.clv_art = I.clv_art
    AND MI.TIPO_MOV IN (51) 
    and extract(month from FECHA_DOCU)=4 
    and extract(year from FECHA_DOCU)=2008) as venta1 <--//creo que falta esto
from tabla1 I  
where I.STATUS='A'
and I.CAMPOSTRU3='HILO LATEX' 
and I.CAMPOSTRU2='LATEX 40BL40EX'  
GROUP BY CLV_ART, CAMPOSTRU1, CAMPOINTU,CAMPODBL4,CAMPODBL8,I.CAMPOSTRU3
__________________

Mi BLOG - ¡Joder, leanse la guia de estilo!
Las Palabras son enanas, los ejemplos gigantes.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 12:30:01.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi