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' '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'

View File

@ -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'