Determine Effective Savings Rate
Inspect the result, its parameters and the SQL behind it.
- Source
- FOCUS use-case library
- Data
- FOCUS 1.0 sample
- Status
- Runs on sample
- Mode
- Read-only
- Library snapshot (UTC)
- 2026-10-08
Loading sample results
Inspect the result, its parameters and the SQL behind it.
1 row. Scroll inside the table to see more.
select sum(contracted_cost) as contracted_cost,
sum(effective_cost) as effective_cost,
(sum(contracted_cost) - sum(effective_cost)) / nullif(sum(contracted_cost), 0) as effective_savings_rate
from focus.cost_and_usage
where charge_period_start >= $1::timestamptz
and charge_period_end < $2::timestamptzSELECT SUM(ContractedCost) AS ContractedCost, SUM(EffectiveCost) AS EffectiveCost, (SUM(ContractedCost) - SUM(EffectiveCost)) / NULLIF(SUM(ContractedCost), 0) AS EffectiveSavingsRate FROM focus_data_table WHERE ChargePeriodStart >= ? AND ChargePeriodEnd < ?