It is a date/time value, not just a date value.
I tried both methodologies and timed the return time. They both worked and returned the same results but the first methodology returned in half the time.
1 - where DATE between '05JAN2023 00:00:00'dt and '05MAY2023 23:59:59'dt
2 - where datepart(DATE) between '05JAN2023'd and '05MAY2023'd
I appreciate all of the help everyone has provided! As I'm still very new to SAS (and obviously using more SQL rather than SAS), anyone have a recommendation on a good learning course for beginners to build up my skillset?
... View more