We are moving from MS Access to MS SQL Server 2000. Some of our Access applications use crosstab queries with the following SQL:
TRANSFORM Count([CHTest3].FacingsX) AS CountOfFacingsX
SELECT [CHTest3].[LM ID Number]
FROM [CHTest3]
GROUP BY [CHTest3].[LM ID Number]
PIVOT [CHTest3].Product;
What would be the best way of replicating this behaviour as I can't find anything similar in the T-SQL documentation.
Much obiliged for your help
TRANSFORM Count([CHTest3].FacingsX) AS CountOfFacingsX
SELECT [CHTest3].[LM ID Number]
FROM [CHTest3]
GROUP BY [CHTest3].[LM ID Number]
PIVOT [CHTest3].Product;
What would be the best way of replicating this behaviour as I can't find anything similar in the T-SQL documentation.
Much obiliged for your help