【发布时间】:2020-07-26 09:47:22
【问题描述】:
这个问题与this one 非常相似,但就我而言,我从两个表中获取列。
我的原始查询:
SELECT price, qty, price*qty as total
FROM tableprices AS t1, tableqty AS t2
WHERE t1.codigo = t2.codigo
然后,我想在每行的表格中获取另一列,其中包含占总数的百分比。
【问题讨论】:
标签: sql postgresql join window-functions