M
Mark Jackson
Hello,
I need to sort a crosstab query by year. I have 2006 data that I don't want
to see, but would like to keep. Any help is appreciated. Here is the SQL
TRANSFORM Count(Quotes.SolicitationID) AS CountOfSolicitationID
SELECT Quotes.[Won/Lost], Format([Type],"mmm") AS SortType,
Format([SubmitDate],"mmyyyy") AS SortDate, Quotes.AwardedTo,
Count(Quotes.SolicitationID) AS [Total Of SolicitationID],
Sum(([Quantity]*[QuotedPrice])) AS TotalValue
FROM Quotes
GROUP BY Quotes.[Won/Lost], Format([Type],"mmm"),
Format([SubmitDate],"mmyyyy"), Quotes.AwardedTo
PIVOT Format([SubmitDate],"mmm") In
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
Thanks
Mark
I need to sort a crosstab query by year. I have 2006 data that I don't want
to see, but would like to keep. Any help is appreciated. Here is the SQL
TRANSFORM Count(Quotes.SolicitationID) AS CountOfSolicitationID
SELECT Quotes.[Won/Lost], Format([Type],"mmm") AS SortType,
Format([SubmitDate],"mmyyyy") AS SortDate, Quotes.AwardedTo,
Count(Quotes.SolicitationID) AS [Total Of SolicitationID],
Sum(([Quantity]*[QuotedPrice])) AS TotalValue
FROM Quotes
GROUP BY Quotes.[Won/Lost], Format([Type],"mmm"),
Format([SubmitDate],"mmyyyy"), Quotes.AwardedTo
PIVOT Format([SubmitDate],"mmm") In
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
Thanks
Mark