Home Forums SQL Server 2005 SQL Server 2005 General Discussion how to get data from last two month to current date RE: how to get data from last two month to current date
Shiva N
Hall of Fame
Points: 3125
More actions
December 8, 2014 at 4:15 am
#1763229
select * from table where datecol between DATEADD(M,-2,getdate()) and GETDATE()
Thanks,Shiva NDatabase Consultant