Any idea what to type near "select" in line 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.
Thank you very much.