We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7458e6 commit d2c8a6bCopy full SHA for d2c8a6b
grafana_queries.sql
@@ -6,10 +6,10 @@ with cost_per_project as (
6
invoice_date
7
from
8
cost
9
- where
10
- cost > 10 -- only consider services where the cost is > 10
11
group by
12
2,3
+ having
+ sum(cost) > 10 -- only consider services where the cost is > 10
13
),
14
lag_cost_per_project as (
15
select
@@ -48,9 +48,10 @@ with cost_per_service as (
48
49
50
51
52
- cost > 10 -- only consider projects where the cost is > 10
53
- group by 2,3
+ group by
+ 2,3
54
55
56
lag_cost_per_service as (
57
0 commit comments