Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Perdón, el ejemplo a la pregunta es este.
Quiero que el nombre del campo, cambié en funcion del campo FechaFactura.
FechaFactura, tiene el mismo dato en todos los registros.
Load
FechaFactura,
NFactura
mes-1 AS monthname(FechaFactura, -1)
mes-2 AS monthname(FechaFactura, -2)
mes-3 AS monthname(FechaFactura, -3)
SQL Select FechaFactura, NFactura, mes-1, mes-2, mes-3 From Facturas