プリマベーラからのプロジェクト情報を保持する SQL テーブルがあります。以下に示すように、開始日、終了日、期間、および合計数量の列があるとします。これらの情報を使用して、月ごとに合計数量を配布するにはどうすればよいですか。正しい月次分布を取得するには、どのような追加の列、SQL クエリが必要ですか?
前もって感謝します。
列の順序:
itemname,quantity,startdate,duration,enddate
item1 -- 108 -- 2013-03-25 -- 720 -- 2013-07-26
item2 -- 640 -- 2013-03-25 -- 720 -- 2013-07-26
.
.