Hey guys im here again with another question on how to solve this specific problem i have, Whic is also releated on my last thread which is http://www.daniweb.com/web-development/php/threads/461702/cant-combine-two-sql-statement .. so the question now is
i have this table
Name Payment_type Service_charge
test 1 Cash 10
test 2 Cash 20
test 3 Charge 100
test 4 Charge 100
test 5 Invoice 50
output is
total Cash: 30
total Charge: 200
totaL Invoice: 50
Grandtotal :280
I can already get the Grandtotal but i can find a way to get the total cash,charge and invoice
what query should i use..? do i need a computation to achieve this?what is the best and easiest way to do it..?without affecting much in my current sql queries
thanks in advance