I am new to SQL coding and I am encountering only one error code so far.
At the second line WHEN CONVERT:
(rd.254 is my table date column)
CASE WHEN CONVERT(date,rd.F254) Between
CONVERT(date,getdate()-7) AND CONVERT(date, getdate()-1) THEN rd.F64 END AS QtyLastWeek
WHEN CONVERT(date,rd.F254) <= CONVERT(date,getdate()-8) THEN rd.F64 END AS Qty2WeeksAgo
I am trying to find and fix the syntax.
