Viewing 2 posts - 1 through 2 (of 2 total)
Thank you for all your inputs the following is my final statement that solved my problem following ScottPletcher
SELECT *FROM hospital_casesWHERE ((date_admitted <= @EndDate) AND (date_discharge >= @StartDate))...
April 2, 2020 at 3:48 am
#3739889
Found partial solution https://www.sqlservercentral.com/forums/topic/check-if-date-ranges-overlap. This solve if the DateDischarge is not NULL.
April 1, 2020 at 10:58 am
#3739577