trim part number coming from CMS listing in spreadsheet with whitespace at end

This commit is contained in:
Paul Trowbridge 2021-04-14 15:26:36 +00:00
parent 3854bed603
commit d13519c07c

View File

@ -246,7 +246,7 @@ SELECT
,mxm.r_currency
,jr.bill_cust_descr
,jr.ship_cust_descr
,(regexp_match(jr.part_descr,'(.*?)(?= - |$)'))[1] part
,rtrim((regexp_match(jr.part_descr,'(.*?)(?= - |$)'))[1]) part
,jr.part_descr
,substring(jr.part_descr,1,8) part_group
,mxm.qty*mxm.momix*jr.mix units