more work
This commit is contained in:
parent
412f0ec082
commit
690b325e78
@ -130,7 +130,7 @@ SELECT
|
|||||||
--retain this column to re-pivot back to original format
|
--retain this column to re-pivot back to original format
|
||||||
,up.col
|
,up.col
|
||||||
,up.vol_uom
|
,up.vol_uom
|
||||||
,row_number() OVER (PARTITION BY up.stlc, up.coltier, up.branding, up.accs, up.suffix ORDER BY item DESC) seq
|
,row_number() OVER (PARTITION BY up.stlc, up.coltier, up.branding, up.accs, up.suffix, up.pckg, up.col, up.vol_uom ORDER BY item DESC) seq
|
||||||
,item
|
,item
|
||||||
FROM
|
FROM
|
||||||
unpivot up
|
unpivot up
|
||||||
@ -167,7 +167,10 @@ FROM
|
|||||||
items
|
items
|
||||||
JOIN LATERAL rlarp.uom_array(conv) rslt ON true
|
JOIN LATERAL rlarp.uom_array(conv) rslt ON true
|
||||||
)
|
)
|
||||||
|
--missing column 3
|
||||||
--SELECT * FROM unpivot ORDER BY stlc
|
--SELECT * FROM unpivot ORDER BY stlc
|
||||||
|
--SELECT * FROM items_init where seq = 1
|
||||||
|
--SELECT * FROM items where seq = 1
|
||||||
----join conversion back to data initial part link------------------------------
|
----join conversion back to data initial part link------------------------------
|
||||||
SELECT
|
SELECT
|
||||||
i.*
|
i.*
|
||||||
@ -181,3 +184,4 @@ WHERE
|
|||||||
ORDER BY
|
ORDER BY
|
||||||
stlc
|
stlc
|
||||||
,coltier
|
,coltier
|
||||||
|
,col
|
||||||
|
Loading…
Reference in New Issue
Block a user