Question : Select statement with Datepart failing

select (DATEPART(mm,vw_dim_ActivityAttribute_SFDC.AssessmentDate) = 1)
from vw_dim_ActivityAttribute_SFDC

this is failing saying

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '='.

this looks perfectly well to me.

Answer : Select statement with Datepart failing

what should your query, aka expression, return?
Random Solutions  
 
programming4us programming4us