SQLchris19
Programmer
Hi, i am a virtual beginner at MSSQL and have had to learn on the job as it were, I'm currently stuck on a report. This report checks a date to see whether that date was before the 25th of the previous month. The previous guy who did the query was shocking and now ive been left with a mess and i need to work out how to fix it, ive done most of it myself, but cant quite get there.
So far its checking the previous month, but not the 25th of the previous month as required. Any help would be much appreciated.
This is the bit thats the problem
[Clients].[Stage4Date] <dateadd(mm, -1, getdate())
So far its checking the previous month, but not the 25th of the previous month as required. Any help would be much appreciated.
This is the bit thats the problem
[Clients].[Stage4Date] <dateadd(mm, -1, getdate())