reference new mlist CTE

This commit is contained in:
Paul Trowbridge 2019-03-02 00:54:17 -05:00
parent 5431306d5e
commit 11d8b2eb00
2 changed files with 133 additions and 133 deletions

View File

@ -231,7 +231,7 @@ server.get('/scenario_package', bodyParser.json(), function (req, res) {
'months'
,(SELECT jsonb_agg(row_to_json(months)::jsonb) FROM months)
,'mpvt'
,(SELECT jsonb_agg(row_to_json(mpvt)::jsonb) FROM mpvt)
,(SELECT jsonb_agg(row_to_json(mlist)::jsonb) FROM mlist)
,'base'
,(SELECT jsonb_agg(row_to_json(base)::jsonb) FROM base)
,'totals'

View File

@ -125,7 +125,7 @@ SELECT
'months'
,(SELECT jsonb_agg(row_to_json(months)::jsonb) FROM months)
,'mlist'
,(SELECT jsonb_agg(row_to_json(mpvt)::jsonb) FROM mpvt)
,(SELECT jsonb_agg(row_to_json(mlist)::jsonb) FROM mlist)
,'base'
,(SELECT jsonb_agg(row_to_json(base)::jsonb) FROM base)
,'totals'