テーブルには、DiscountStart 列と DiscountEnd 列があります。両方の列に Month+'/'+Day 値が保持されます。
Product DiscountStart DiscountEnd Rate
--------------------------------------------------
Product1 'Dec/10' 'Jan/05' 10%
Product2 'Nov/01 'Dec/31' 12%
Product3 'May/01' 'Jun/30' 08%
Product4 'Sep/01' 'Sep/15' 05%
DiscountStart
購入日が購入年の~の期間にある場合、商品に割引率を適用する必要がありますDiscountEnd
。助けてください。