SELECT
  COALESCE(X.SalesClientCountBudget, 0) AS SalesClientCountBudget,
  COALESCE(X.CancellationClientCountBudget, 0) AS CancellationClientCountBudget
FROM (
  SELECT
    ( SELECT SUM(BU.Amount) FROM taBudget AS BU
      WHERE
        ((BU.Year * 100 + BU.Month) BETWEEN (YEAR(@aFromDate) * 100 + MONTH(@aFromDate)) AND (YEAR(@aToDate) * 100 + MONTH(@aToDate))) AND
        (BU.BudgetType = 'SalesClientCountGrowth')
        @pBranchID
        @pProductID
    ) AS SalesClientCountBudget,
    ( SELECT SUM(BU.Amount) FROM taBudget AS BU
      WHERE
        ((BU.Year * 100 + BU.Month) BETWEEN (YEAR(@aFromDate) * 100 + MONTH(@aFromDate)) AND (YEAR(@aToDate) * 100 + MONTH(@aToDate))) AND
        (BU.BudgetType = 'CancellationClientCountGrowth')
        @pBranchID
        @pProductID
    ) AS CancellationClientCountBudget
) AS X