doesn't look like the following is allowed:
SELECT CASE
WHEN DATEPART(wk,@ffTestStartDate) BETWEEN 27 AND 47 THEN --middle of year to end of first tri
SET @dwSeasonKey = 4 --Fall
WHEN DATEPART(wk,@ffTestStartDate) BETWEEN 11 AND 26 THEN --end of second tri to middle of year
SET @dwSeasonKey = 2 --Spring
ELSE
SET @dwSeasonKey = 1 --Winter
END
using IF is rediculously ugly. Is there something I'm missing with CASE? Thanks