Forgot this:)
PARTITION BY RANGE_N(Shipment_Dt BETWEEN DATE '2007-01-01' AND DATE '2020-12-31' EACH INTERVAL '7' DAY )
INDEX ( Prod_Id )
INDEX ( Rtl_Id ,Prod_Id ,Shipment_Dt )
INDEX ( Rtl_Id ,Shipment_Dt )
INDEX ( Dstbr_Id )
INDEX ( Shipment_Dt );
↧