What happens is that I need to transform a column into the head of the other columns, I do not know if I explain.
Here something more detailed:
I have this query which shows me the description column which I would like to be the header of the columns.
select cantidad,Punto1, Punto2,Punto3,Punto4,TallasDetalle.IdTalla,TallasDetalle.Descripcion
From tblProductoPedido join TallasDetalle
on tblProductoPedido.IdTalla = TallasDetalle.IdTalla
where Codigo = '900121220066'
I managed to do one I show the following query:
Select * From(
select cantidad,Punto1, Punto2,Punto3,Punto4,TallasDetalle.IdTalla,TallasDetalle.Descripcion
From tblProductoPedido join TallasDetalle
on tblProductoPedido.IdTalla = TallasDetalle.IdTalla
where Codigo = '900121220066') as a Pivot(AVG(Punto1) For [Descripcion] in ([25])) as TablaPivote
and so it looks:
Now I do not know how to do so that others can also be replaced and appear for example:
Please, if someone could help me or support me, I would appreciate it.