I usually start with the hard-coded values:[tt]
Where stop.sched_arrive_early between '05/20/2016' and '05/24/2016'[/tt]
The dates are at midnight (time 00:00:00), so it will give you the whole day of 20th, 21st, 22nd, and 23rd until midnight.
Now you just need to replace the dates in quotes with the magic of
[tt]dateadd(dd, X, datediff(dd, 0, getdate())) [/tt]
Or you can try something like:
[tt]
Where stop.sched_arrive_early between CONVERT(date, GETDATE()) and CONVERT(date, GETDATE() + 4)[/tt]
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.