IF (SELECT Sum(ISNULL(NumberOfArrival, 0)) + Sum(ISNULL(NumberOfInhouse, 0)) + Sum(ISNULL(NumberOfStay,0)) + Sum(ISNULL(NumberOfDeparture, 0)) FROM RoomBookingStatus
where DateStamp = '20220301'
GROUP BY datestamp) = 0
	EXEC RegenerateAvailabilityFromDate '20220101', 1