I'm using SQL Server 2014 Management Studio, I adapted the following code from a net:
USE [DRILLHOLES_Export]
GO
select * from
(
SELECT [DHSurveyId],[AttributeColumn],[AttributeValue]
FROM mytest
) A
PIVOT
(
Max(AttributeValue)
FOR [AttributeColumn] IN ([Azimuth],[AMG Azimuth],
[Dip])
) AS PVTTable
I want to save it to a table. Can anyone help. Regards, Peter