From c92f945a71661996c7865531f551c72ff9dcdf6e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 22 Apr 2021 17:47:29 -0400 Subject: [PATCH] join to materialized view --- build/snap_itemm_pool.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/snap_itemm_pool.sql b/build/snap_itemm_pool.sql index 92723cb..a4db87f 100644 --- a/build/snap_itemm_pool.sql +++ b/build/snap_itemm_pool.sql @@ -39,7 +39,7 @@ SELECT DISTINCT ,CASE WHEN i.majg = '610' THEN 'Fiber' ELSE 'Plastic' END substance FROM rlarp.osm_pool o - LEFT OUTER JOIN rlarp.itemm i ON + LEFT OUTER JOIN rlarp.itemmv i ON i.item = o.part LEFT OUTER JOIN seg ON seg.glec = i.glec