commit: 2025-04-10 18:40:15
This commit is contained in:
parent
3be3aab2b1
commit
14c43eec3c
@ -31,6 +31,7 @@ SELECT
|
|||||||
,sg.sortmo smon
|
,sg.sortmo smon
|
||||||
,COALESCE(f.flag,CASE WHEN o.shipgrp = 'TARGET STORES' THEN 'RETAIL' ELSE 'YoY' END) price_flag
|
,COALESCE(f.flag,CASE WHEN o.shipgrp = 'TARGET STORES' THEN 'RETAIL' ELSE 'YoY' END) price_flag
|
||||||
,coalesce(i.futstdus,o.fb_cst_loc_cur * c_rate) cash_cost
|
,coalesce(i.futstdus,o.fb_cst_loc_cur * c_rate) cash_cost
|
||||||
|
,CASE WHEN o.shipgrp = 'TARGET STORES' THEN 'Giorgio' ELSE r.director END director
|
||||||
FROM
|
FROM
|
||||||
rlarp.osmfs o
|
rlarp.osmfs o
|
||||||
LEFT OUTER JOIN seg s ON
|
LEFT OUTER JOIN seg s ON
|
||||||
@ -44,3 +45,5 @@ FROM
|
|||||||
AND f.dsm = o.dsm
|
AND f.dsm = o.dsm
|
||||||
LEFT OUTER JOIN "CMS.CUSLG".itemm i ON
|
LEFT OUTER JOIN "CMS.CUSLG".itemm i ON
|
||||||
i.item = o.part
|
i.item = o.part
|
||||||
|
LEFT OUTER JOIN rlarp.repc r ON
|
||||||
|
r.rcode = substring(o.dsm,1,5)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user