ccdw_aggr_promotion_sales_summary

This table summarizes sales attributed to promotions by various dimensions. This table is aggregated from ccdw_fact_promotion_line_item.

Column AliasData TypeKeyDescriptionIndex?
submit_dateDATEDate of the sales submission.Yes
business_channel_idSMALLINTFKForeign key to ccdw_dim_business_channel.Yes
registeredBOOLEANBoolean indicating if the customer was registered.Yes
site_idSMALLINTFKForeign key to ccdw_dim_site.Yes
first_time_buyerBOOLEANBoolean indicating if the customer was a first-time buyer.Yes
promotion_idINTEGERFKForeign key to ccdw_dim_promotion.Yes
campaign_idINTEGERFKForeign key to ccdw_dim_campaign.Yes
coupon_idINTEGERFKForeign key to ccdw_dim_coupon.Yes
device_class_codeVARCHARDevice class code from ccdw_dim_user_agent.Yes
locale_codeVARCHARLocale code from ccdw_dim_locale.Yes
num_ordersINTEGERTotal number of orders involving the promotion.No
num_unitsINTEGERTotal number of units sold with the promotion.No
std_revenueNUMERICTotal revenue involving the promotion. This column is aggregated from std_li_gross_merchandise_value.No
std_taxNumericTotal tax in standard currency attributed to the promotion.No
std_shippingNUMERICTotal shipping cost in standard currency attributed to the promotion.No
num_promotion_usesINTEGERNumber of times the promotion was used.No
std_total_discountNUMERICTotal discount in standard currency from the promotion.No
std_item_discountNUMERICItem-level discount in standard currency from the promotion.No
std_order_discountNUMERICOrder-level discount in standard currency from the promotion.No
std_shipping_discountNUMERICShipping discount in standard currency from the promotion.No
std_order_netNUMERICNet order value in standard currency after promotions.No
std_shipping_netNUMERICNet shipping value in standard currency after promotions.No
std_discountNUMERICTotal discount in standard currency.No
num_order_unitsINTEGERNumber of units associated with orders.No