I have a query currently which converts a datetime field into date. There is also another field called Totalvolume.
I want the query to look at todays date and then the next 5 days ahead (preferably working days) and also do a sum of the TOTALVolume for the day rather than have individual lines listed
thia is the query I have currently
SELECT CONVERT(varchar, CONVERT(varchar(2), DATEPART(day, DateRequired)) + '/' + CONVERT(varchar(2), DATEPART(month, DateRequired)) + '/' + CONVERT(varchar(4),
DATEPART(year, DateRequired))) AS Date, TotalVolume
FROM dbo.[148-vwOrderHeadCP]
Could someone please advise (I will keep trying in the mean time and update if successful)
Thanks in advance
I want the query to look at todays date and then the next 5 days ahead (preferably working days) and also do a sum of the TOTALVolume for the day rather than have individual lines listed
thia is the query I have currently
SELECT CONVERT(varchar, CONVERT(varchar(2), DATEPART(day, DateRequired)) + '/' + CONVERT(varchar(2), DATEPART(month, DateRequired)) + '/' + CONVERT(varchar(4),
DATEPART(year, DateRequired))) AS Date, TotalVolume
FROM dbo.[148-vwOrderHeadCP]
Could someone please advise (I will keep trying in the mean time and update if successful)
Thanks in advance