Hi
I have the following SQL View which lists all Products with the total for their own group for the date.
I would like to create a total for each date but cannot work out how to do this within the statement. Could someone please point me in the right direction
SELECT DeliveryDate, SUM(TREX) AS TREX, SUM(LooseStock) AS [Loose Stock], SUM(Mouldings) AS Mouldings, SUM(LengthStocks) AS [Length Stocks], SUM([Deck Ancillaries]) AS [Deck Ancillaries], SUM([Deck Rails]) AS [Deck Rails], SUM([MDF architraves loose]) AS [MDF architraves loose],
SUM([MDF skirtings loose]) AS [MDF skirtings loose], SUM([MDF windowboard loose]) AS [MDF windowboard loose], SUM(Newels) AS Newels, SUM(Spindles) AS Spindles
FROM dbo.[148-vwLoadingAnalysisForSmartView_FeedCP]
GROUP BY DeliveryDate
ORDER BY DeliveryDate DESC
Thanks
I have the following SQL View which lists all Products with the total for their own group for the date.
I would like to create a total for each date but cannot work out how to do this within the statement. Could someone please point me in the right direction
SELECT DeliveryDate, SUM(TREX) AS TREX, SUM(LooseStock) AS [Loose Stock], SUM(Mouldings) AS Mouldings, SUM(LengthStocks) AS [Length Stocks], SUM([Deck Ancillaries]) AS [Deck Ancillaries], SUM([Deck Rails]) AS [Deck Rails], SUM([MDF architraves loose]) AS [MDF architraves loose],
SUM([MDF skirtings loose]) AS [MDF skirtings loose], SUM([MDF windowboard loose]) AS [MDF windowboard loose], SUM(Newels) AS Newels, SUM(Spindles) AS Spindles
FROM dbo.[148-vwLoadingAnalysisForSmartView_FeedCP]
GROUP BY DeliveryDate
ORDER BY DeliveryDate DESC
Thanks