declare @test table(id int,name varchar(100))insert into @test(id,name)select ID,LastName from tb_OrderUserInfo where DATEDIFF(M,InTime,GETDATE())<3select * from @test