change getdate to DATEADD(dd, DATEDIFF(dd, 0, getdate())+0, 0) to strip of the time
where SomeValue >= dateadd(yy, -1, DATEADD(dd, DATEDIFF(dd, 0, getdate())+0, 0))
or
where SomeValue >= dateadd(mm, -12, DATEADD(dd, DATEDIFF(dd, 0, getdate())+0, 0))
test with this
select dateadd(yy, -1, DATEADD(dd, DATEDIFF(dd, 0, getdate())+0, 0))
select dateadd(mm, -12, DATEADD(dd, DATEDIFF(dd, 0, getdate())+0, 0))
Denis The SQL Menace
SQL blog:
Personal Blog: