Home Forums SQL Server 2008 SQL Server 2008 - General Change rowns to columns RE: Change rowns to columns
river1
SSC-Insane
Points: 24300
More actions
October 2, 2014 at 5:26 am
#1749652
example:
select * from vw_teste
pivot (AVG(ocorrencias) for metodoctb IN ([tipo 1],[TIPO 2],[TIPO 5],[TIPO 7])) as teste
this has average.
I don't want average..