prevent joining to fake parts, and eliminate b21 filter

This commit is contained in:
Paul Trowbridge 2020-04-16 19:15:55 -04:00
parent 17265d0b36
commit 9826b5f810

View File

@ -7,6 +7,10 @@ plist AS (
,plnt
FROM
rlarp.osmf_dev
-----prevent a list of fake parts
INNER JOIN lgdat.stka ON
v6part = part
AND v6plnt = plnt
)
,clist AS (
SELECT
@ -33,7 +37,7 @@ FROM
clist c
WHERE
c.part = o.part
AND c.plnt = o.plnt
AND version = 'b21';
AND c.plnt = o.plnt;
--AND version = 'b21';
commit;