Ver Mensaje Individual
  #2  
Antiguo 20-06-2006
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is online now
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 19.436
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Esto debe funcionar:
Código SQL [-]
select IMPORTE as Sueldos, NULL as Otros, NULL as Retenciones from tabla
where COlumna=1
union
select NULL as Sueldos, IMPORTE as Otros, NULL as Retenciones from tabla
where COlumna=2
union
select NULL as Sueldos, NULL as Otros, IMPORTE as Retenciones from tabla
where COlumna=3
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita