Using SQL Server 2008 R2
Trying to figure out out what date this statement produces with a starting date of mydate=10/1/2010
CONVERT(datetime, CONVERT(char(11), DATEADD(dd, - (DAY(DATEADD(mm, 1, drh1.mydate)) - 1), drh1.mydate), 101))
I've tried to break it down piece by piece and pulling...