You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WHERE CONVERT(date, [FirstDayOfMonth]) BETWEEN '8/1/2015' AND (CASE WHEN getdate() = EOMONTH(getDate()) THEN EOMonth(getdate()) ELSE DateAdd([m], - 1, EOMonth(getdate())) END))
SELECT *, ROW_NUMBER() OVER (ORDER BY EOM ASC) AS [sid], ROW_NUMBER() OVER (ORDER BY EOM DESC) AS [sidDesc]