From 76edca43dc3c502508793284558071f67fe60bf4 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 12 May 2020 08:51:25 -0400 Subject: [PATCH] test for match after pool conversion --- build/check_osmf_match_sales.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build/check_osmf_match_sales.sql diff --git a/build/check_osmf_match_sales.sql b/build/check_osmf_match_sales.sql new file mode 100644 index 0000000..7270101 --- /dev/null +++ b/build/check_osmf_match_sales.sql @@ -0,0 +1,22 @@ +SELECT + ship_season + ,sum(value_usd) value_usd +FROM + rlarp.osm_pool +WHERE + ship_season = 2021 + --AND version = 'b21' +GROUP BY + ship_season +UNION ALL +SELECT + sseas + ,sum(fb_val_loc * r_rate) value_usd +FROM + rlarp.osmf_dev +WHERE + sseas = 2021 + --AND version = 'b21' +GROUP BY + sseas +