I want to get sales from the past three months.
I use a variable to get todays date:
declare @Today datetime
set @Today=getdate()
and then try and pass that through to this formula:
and datetable.datevalue between @Today and month(dateadd(m,-3, @today))
However, i am not getting any results.
Can anyone help?
I use a variable to get todays date:
declare @Today datetime
set @Today=getdate()
and then try and pass that through to this formula:
and datetable.datevalue between @Today and month(dateadd(m,-3, @today))
However, i am not getting any results.
Can anyone help?