techkenny1
Technical User
Hi
Below is the sql code for a crosstab query;
I need to be able to select a date ie; 1/7/10 to 31/7/10 to show sales per company for that date period.
many thanks
kp
Below is the sql code for a crosstab query;
Code:
TRANSFORM Sum(Accounts08.InvoiceTotal) AS SumOfInvoiceTotal
SELECT Accounts08.Companyname, Sum(Accounts08.InvoiceTotal) AS [Total Of InvoiceTotal]
FROM Accounts08
GROUP BY Accounts08.Companyname
PIVOT Format([DateRaised],"mmm-yyyy");
I need to be able to select a date ie; 1/7/10 to 31/7/10 to show sales per company for that date period.
many thanks
kp