📜  总 postgres 的运行百分比 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:34.759000             🧑  作者: Mango

代码示例1
SELECT
  *,  (value / SUM(value) OVER ()) AS "% of total"
FROM
  transactions
WHERE
  quarter = '2015-03-31' and company_id = 1;