From daa5cc1f2162c79b5ffdaaeacbb642162381dda9 Mon Sep 17 00:00:00 2001 From: Rogan Hamby Date: Tue, 14 Jan 2020 11:35:11 -0500 Subject: [PATCH] adding x_migrate filters on two barcode collision reports --- mig-xml/evergreen_staged_report.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mig-xml/evergreen_staged_report.xml b/mig-xml/evergreen_staged_report.xml index 289261c..c03e788 100644 --- a/mig-xml/evergreen_staged_report.xml +++ b/mig-xml/evergreen_staged_report.xml @@ -402,7 +402,7 @@ assets 0 Collision List - SELECT ac.barcode FROM m_asset_copy_legacy ac WHERE ac.barcode LIKE 'x_%' ORDER BY 1 LIMIT 20 + SELECT ac.barcode FROM m_asset_copy_legacy ac WHERE ac.barcode LIKE 'x_%' AND ac.x_migrate = TRUE ORDER BY 1 LIMIT 20 This is a shortlist of copy barcode collisions that maxes out at 20. If there are more collisions we will need to run a custom report. @@ -422,7 +422,7 @@ assets 0 Number of Barcodes Matching Pattern Greater than 10.Left 60% of Characters - SELECT COUNT(ac.id), LEFT(ac.barcode,(ROUND(LENGTH(ac.barcode)*.6))::INT) FROM m_asset_copy_legacy ac WHERE barcode LIKE 'x_%' GROUP BY 2 HAVING COUNT(ac.id) > 10 ORDER BY 2 + SELECT COUNT(ac.id), LEFT(ac.barcode,(ROUND(LENGTH(ac.barcode)*.6))::INT) FROM m_asset_copy_legacy ac WHERE barcode LIKE 'x_%' AND ac.x_migrate = TRUE GROUP BY 2 HAVING COUNT(ac.id) > 10 ORDER BY 2 -- 1.7.2.5