comment out debug selections
This commit is contained in:
parent
ad56a96cd3
commit
e50113f825
@ -22,6 +22,7 @@ repc AS (
|
|||||||
WHERE
|
WHERE
|
||||||
C.A2 = 'MM'
|
C.A2 = 'MM'
|
||||||
)
|
)
|
||||||
|
--select * from repc
|
||||||
,SEG AS (
|
,SEG AS (
|
||||||
SELECT
|
SELECT
|
||||||
GLEC
|
GLEC
|
||||||
@ -46,17 +47,22 @@ repc AS (
|
|||||||
('9TO','Other')
|
('9TO','Other')
|
||||||
) X(GLEC, SEGM)
|
) X(GLEC, SEGM)
|
||||||
)
|
)
|
||||||
|
--select * from seg
|
||||||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||||||
,SJ AS (
|
,SJ AS (
|
||||||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||||||
)
|
)
|
||||||
|
--select * from sj
|
||||||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||||||
,SI AS (
|
,SI AS (
|
||||||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||||||
)
|
)
|
||||||
|
--select * from si
|
||||||
,logload AS (
|
,logload AS (
|
||||||
INSERT INTO rlarp.osm_log (doc) SELECT jsonb_build_object('user',current_user,'tag','1+11','type','build_pool','stamp',current_timestamp,'source','top level','message','don''t undo') RETURNING *
|
INSERT INTO rlarp.osm_log (doc) SELECT jsonb_build_object('user',current_user,'tag','1+11','type','build_pool','stamp',current_timestamp,'source','top level','message','don''t undo') RETURNING *
|
||||||
)
|
)
|
||||||
|
--select * from logload
|
||||||
|
,loadset AS (
|
||||||
SELECT
|
SELECT
|
||||||
fspr
|
fspr
|
||||||
,plnt
|
,plnt
|
||||||
@ -174,7 +180,8 @@ FROM
|
|||||||
seg.glec = o.glec
|
seg.glec = o.glec
|
||||||
LEFT OUTER JOIN rlarp.itemm i ON
|
LEFT OUTER JOIN rlarp.itemm i ON
|
||||||
i.item = o.part
|
i.item = o.part
|
||||||
--LIMIT 100
|
)
|
||||||
|
SELECT * FROM loadset
|
||||||
) WITH DATA;
|
) WITH DATA;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user