-4
我一直在试图总结两个不同的税收从一个表中的值量,我的表像下面如何汇总线性微分方程数值税单项金额
Sales table:
Customer_id Tax_percent Tax_amount
100 5% 2.50
100 14.5% 6.75
101 5% 1.25
102 5% 2.00
101 14.5% 9.50
我的输出将是这样的:
total 5% amount is 5.75
total 14.5% amount is 16.25
请帮忙。
查找'sum'和'组by' – inarilo
SELECT征税百分比,SUM(TAX_AMOUNT)销售 集团通过征税百分比 –
哪个[DBMS]( https://en.wikipedia.org/wiki/DBMS)你在用吗? Postgres的?甲骨文? –