Generate a list of Dave's suppliers and show, as
a percentage of the total dollar amount of sales made, how much of this money is spent
on each supplier's products. Order the output from the supplier with the largest
percentage to the suppliers with the least. If a supplier hasn't had any of their items sold
(i.e. 0%), then you should show them in this list as well.
TABLE:
ORDERDETAILS ORDERID ITEMID QUANTITY SALEPRICE
ITEMS ITEMID SUPPLIERID DESCRIPTION
How should be the outpur of the answer : like this :
SUPPLIERID PERCENTAGE(MONEY_MADE_FROM_THE_ITEMS/TOTAL_MONEY_MADE) ?
or like this :
SUPPLIERID TOTALPERCENTAGE ITEMSID ITEMSPERCENTAGE ??
I cant break the questions in small parts, i dont know what to do a
hont will be nice.
coulix
Oracle LazyDBA home page