Percent of Sum


#1

Any idea what to type near "select" in line 2?


#2

you have to type
(select sum(amout_paid) from order_items)

the percentages appears when you devide the sum prices for single product on the amount price for all products.


#3

Thank you very much.