DECLARE @StartDate AS SMALLDATETIME DECLARE @EndDate AS SMALLDATETIME DECLARE @BranchNum AS INT SET @StartDate = \'2019-10-22\' SET @EndDate = \'2019-10-23\' set @Branc