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 14-09-2005
Avatar de ContraVeneno
ContraVeneno ContraVeneno is offline
Miembro
 
Registrado: may 2005
Ubicación: Torreón, México
Posts: 4.740
Poder: 26
ContraVeneno Va por buen camino
Código SQL [-]
select B.fecha, B.parte,
(select A.total 
from TuTabla A 
where B.fecha=A.Fecha 
and B.parte=A.Parte 
and A.dia='01') as dia1,
(select A.total 
from TuTabla A 
where B.fecha=A.Fecha 
and B.parte=A.Parte 
and A.dia='02') as dia2,
(select A.total 
from TuTabla A 
where B.fecha=A.Fecha 
and B.parte=A.Parte 
and A.dia='03') as dia3
from TuTabla B
Group By B.Fecha, B.Parte
__________________


Última edición por ContraVeneno fecha: 14-09-2005 a las 18:04:27.
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 01:22:13.


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