Hi
I have a query that no matter what I try to do I get error messages
SELECT vwOrderVolumeByDate.DateRequired, vwOrderVolumeByDate."Level 2", SUM [Total Volume] AS M3
FROM vwOrderVolumeByDate
WHERE (DateRequired >= CAST(GETDATE() AS DATE)) AND (DateRequired <= DATEADD(day, 7, CAST(GETDATE() AS DATE)))
GROUP BY DateRequired
ORDER BY DateRequired ASC
I am currently getting
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'FROM'.
Fairly new to coding so what I am doing incorrect please.
Thanks
I have a query that no matter what I try to do I get error messages
SELECT vwOrderVolumeByDate.DateRequired, vwOrderVolumeByDate."Level 2", SUM [Total Volume] AS M3
FROM vwOrderVolumeByDate
WHERE (DateRequired >= CAST(GETDATE() AS DATE)) AND (DateRequired <= DATEADD(day, 7, CAST(GETDATE() AS DATE)))
GROUP BY DateRequired
ORDER BY DateRequired ASC
I am currently getting
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'FROM'.
Fairly new to coding so what I am doing incorrect please.
Thanks