THE LINUX FOUNDATION PROJECTS
Docs navigation
On this page

    Update budgets with billed costs

    FOCUS Versions

    v1.3 v1.4

    Context

    Finance manages tracking of budgets and must update long-term budgets with the actual costs billed each month so the budget is not exceeded.

    FOCUS SQL Query

    SELECT
      ServiceProviderName,
      BillingPeriodStart,
      BillingPeriodEnd,
      SUM(BilledCost) AS TotalBilledCost
    FROM focus_data_table
    WHERE BillingPeriodStart >= ? AND BillingPeriodEnd < ?
    GROUP BY
      ServiceProviderName,
      BillingPeriodStart,
      BillingPeriodEnd

    FOCUS Datasets

    FOCUS Columns