SELECT TOP 100 ID, DateTime, (StatusCode in (301,302)) AS IsRedirectFROM RequestLogORDER BY DateTime DESC
Msg 156, Level 15, State 1, Line 1Incorrect syntax near the keyword 'in'.
SELECT TOP 100 ID, DateTime, (case when (StatusCode in (301, 302)) then 1 else 0 end) AS IsRedirectFROM RequestLogORDER BY DateTime DESC