Hi; i'm trying to get this pivot query working in msSql:
TRANSFORM Sum(tblAssortiment.Aantal) AS SumOfAantal
SELECT tblAssortiment.Assortiment
FROM tblAssortiment
WHERE (((tblAssortiment.Artikel)=?))
GROUP BY tblAssortiment.Assortiment
PIVOT tblAssortiment.Maat;
Any ideas?
Thank you!
It's difficult to determine what you are trying to do without the full schema of your database or more information, but you should start here to find out more about the PIVOT statement in SQL Server:
http://msdn2.microsoft.com/en-us/library/ms177410.aspx
No comments:
Post a Comment