Which method is most efficient when comparing PARTS of date/datetime values? Example for comparing month of datetimes:
where insdate =DATEADD(month, DATEDIFF(month, 0, @insdate), 0)
or
where year(insdate)=year(@insdate) and month(insdate)=month(@insdate)
I'm using sql server