reference new mlist CTE
This commit is contained in:
parent
5431306d5e
commit
11d8b2eb00
2
index.js
2
index.js
@ -231,7 +231,7 @@ server.get('/scenario_package', bodyParser.json(), function (req, res) {
|
|||||||
'months'
|
'months'
|
||||||
,(SELECT jsonb_agg(row_to_json(months)::jsonb) FROM months)
|
,(SELECT jsonb_agg(row_to_json(months)::jsonb) FROM months)
|
||||||
,'mpvt'
|
,'mpvt'
|
||||||
,(SELECT jsonb_agg(row_to_json(mpvt)::jsonb) FROM mpvt)
|
,(SELECT jsonb_agg(row_to_json(mlist)::jsonb) FROM mlist)
|
||||||
,'base'
|
,'base'
|
||||||
,(SELECT jsonb_agg(row_to_json(base)::jsonb) FROM base)
|
,(SELECT jsonb_agg(row_to_json(base)::jsonb) FROM base)
|
||||||
,'totals'
|
,'totals'
|
||||||
|
@ -125,7 +125,7 @@ SELECT
|
|||||||
'months'
|
'months'
|
||||||
,(SELECT jsonb_agg(row_to_json(months)::jsonb) FROM months)
|
,(SELECT jsonb_agg(row_to_json(months)::jsonb) FROM months)
|
||||||
,'mlist'
|
,'mlist'
|
||||||
,(SELECT jsonb_agg(row_to_json(mpvt)::jsonb) FROM mpvt)
|
,(SELECT jsonb_agg(row_to_json(mlist)::jsonb) FROM mlist)
|
||||||
,'base'
|
,'base'
|
||||||
,(SELECT jsonb_agg(row_to_json(base)::jsonb) FROM base)
|
,(SELECT jsonb_agg(row_to_json(base)::jsonb) FROM base)
|
||||||
,'totals'
|
,'totals'
|
||||||
|
Loading…
Reference in New Issue
Block a user