阅读背景:

查询以查找平均加权价格

来源:互联网 

I have a table in Oracle with multiple rows per a given part. Each row has a quantity and a price associated with it. There is also a total quantity that the set of rows for a given part adds up to. Below is a sample of the data. What I need is to get the average weighted price for the part. For example if a quantity of 100 of a part has a price of 1 and a quantity of 50 has a price of 2 the weighted average price is 1.33333333I have a table in Oracle with multiple rows per




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: