summary of pool by month
This commit is contained in:
parent
73c3171d04
commit
5520337446
15
inquirey/months.sql
Normal file
15
inquirey/months.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
SELECT
|
||||||
|
order_month
|
||||||
|
,SUM(value_usd) FILTER (WHERE order_season = 2021 AND iter = 'plan') plan2021
|
||||||
|
,SUM(value_usd) FILTER (WHERE order_season = 2022 AND iter = 'plan') plan2022
|
||||||
|
,SUM(value_usd) FILTER (WHERE order_season = 2021 AND iter = 'diff') diff2021
|
||||||
|
,SUM(value_usd) FILTER (WHERE order_season = 2022 AND iter = 'diff') diff2022
|
||||||
|
,SUM(value_usd) FILTER (WHERE order_season = 2021 AND iter = 'actuals') act2021
|
||||||
|
,SUM(value_usd) FILTER (WHERE order_season = 2022 AND iter = 'actuals') act2022
|
||||||
|
FROM
|
||||||
|
rlarp.osm_pool
|
||||||
|
WHERE
|
||||||
|
order_season IN (2021,2022)
|
||||||
|
AND quota_rep_descr = 'COLIN MAXWELL'
|
||||||
|
GROUP BY
|
||||||
|
order_month
|
Loading…
Reference in New Issue
Block a user