Процент бега общего постгров
SELECT
*, (value / SUM(value) OVER ()) AS "% of total"
FROM
transactions
WHERE
quarter = '2015-03-31' and company_id = 1;
Excited Elk
SELECT
*, (value / SUM(value) OVER ()) AS "% of total"
FROM
transactions
WHERE
quarter = '2015-03-31' and company_id = 1;