-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的?甲骨文? –