• SELECT * from t Where year(t.testdate)=(year(getdate())-1) and month(t.testdate)=month(getdate())