forecast_api/build/check_osmf_match.sql

23 lines
331 B
MySQL
Raw Normal View History

2020-05-11 20:54:35 -04:00
SELECT
order_season
2021-04-05 12:02:03 -04:00
,sum(coalesce(value_usd,0)) value_usd
2020-05-11 20:54:35 -04:00
FROM
rlarp.osm_pool
WHERE
2021-04-05 12:02:03 -04:00
order_season = 2022
2020-05-11 20:54:35 -04:00
--AND version = 'b21'
GROUP BY
order_season
UNION ALL
SELECT
oseas
,sum(fb_val_loc * r_rate) value_usd
FROM
rlarp.osmf_dev
WHERE
2021-04-05 12:02:03 -04:00
oseas = 2022
AND version = 'b22'
2020-05-11 20:54:35 -04:00
GROUP BY
oseas