add last change

This commit is contained in:
Paul Trowbridge 2019-04-16 09:18:37 -05:00
parent 7008f57f66
commit f71fee5df6

View File

@ -33,6 +33,7 @@ SELECT
,to_char(sum(sales_adj),'999,999,999') sales_adj ,to_char(sum(sales_adj),'999,999,999') sales_adj
,to_char(sum(sales_adj - scogs_adj),'999,999,999') margin_adj ,to_char(sum(sales_adj - scogs_adj),'999,999,999') margin_adj
,count(iterdef) "# of changes" ,count(iterdef) "# of changes"
,(max(iterdef->>'stamp'))::timestamptz "last edit"
FROM FROM
preagg preagg
GROUP BY GROUP BY