ccdw_fact_promotion_line_item

This table records the application of promotions to individual line items. Each row represents a promotion line item in an order.

Column AliasData TypeKeyDescriptionIndex?
promotion_line_item_idBIGINTPKUnique identifier for the promotion line item.Yes
promotion_idINTEGERFKForeign key to ccdw_dim_promotion.Yes
sku_idINTEGERFKForeign key to ccdw_dim_product for the SKU affected by the promotion.Yes
promotion_instance_idVARCHAR(50)Unique key representing the usage/application of a promotion in an order.No
line_item_idBIGINTFKForeign key to ccdw_fact_line_item.No
nline_item_idVARCHAR(50)Normalized line item identifier.No
order_idBIGINTFKA surrogate key representing the order associated with the line item.Yes
norder_idVARCHAR(50)The natural key representing the order in the source system.No
utc_submit_timestampTIMESTAMPUTC timestamp when the promotion was applied.Yes
utc_submit_day_idSMALLINTFKForeign key to ccdw_dim_date for the UTC submission day.Yes
utc_submit_time_idSMALLINTFKForeign key to ccdw_dim_time for the UTC submission time.No
utc_update_timestampTIMESTAMPLast modified UTC timestamp of this record.Yes
std_submit_timestampTIMESTAMPTimestamp when the promotion was applied, in standard time.No
std_submit_day_idSMALLINTFKForeign key to ccdw_dim_date for the standard submission day.Yes
std_submit_time_idSMALLINTFKForeign key to ccdw_dim_time for the standard submission time.No
std_timezone_idSMALLINTFKForeign key to ccdw_dim_timezone for the standard time zone.No
locale_idSMALLINTFKForeign key to ccdw_dim_locale.Yes
site_idSMALLINTFKForeign key to ccdw_dim_site for the submission site.Yes
business_channel_idSMALLINTFKForeign key to ccdw_dim_business_channel.Yes
user_agent_idINTEGERFKForeign key to ccdw_dim_user_agent.Yes
campaign_idINTEGERFKForeign key to ccdw_dim_campaign.No
source_code_group_idINTEGERFKForeign key to ccdw_dim_source_code_group.No
visitor_idVARCHAR(100)Unique key representing an ID of the visitor.No
customer_idBIGINTFKForeign key to ccdw_dim_customer.Yes
lcl_currency_idSMALLINTFKForeign key to ccdw_dim_currency for local currency.No
std_currency_idSMALLINTFKForeign key to ccdw_dim_currency for standard currency.No
shipping_geography_idINTEGERFKForeign key to ccdw_dim_geography for shipping location.No
invoice_geography_idINTEGERFKForeign key to ccdw_dim_geography for invoice location.No
customer_geography_idINTEGERFKForeign key to ccdw_dim_geography for customer's address.No
quantityNUMERICThe number of units of this line item that were purchased.No
lcl_li_promo_discNUMERICThe line item promotional discounts associated with the line item.No
lcl_li_promo_disc_order_allocNUMERICThe order level promotional discounts associated with the line item (pro-rated).No
lcl_li_promo_disc_ship_allocNUMERICThe line item shipping level promotional discounts associated with the line item (pro-rated).No
lcl_li_manual_discNUMERICThe line item manual discounts associated with the line item.No
lcl_li_manual_disc_order_allocNUMERICThe order level manual discounts associated with the line item (pro-rated).No
lcl_li_manual_disc_ship_allocNUMERICThe shipping level manual discounts associated with the line item (pro-rated).No
lcl_li_taxNUMERICThe line item level tax.No
lcl_li_tax_order_allocNUMERICThe order level tax (pro-rated).No
lcl_li_shippingNUMERICThe line item level shipping.No
lcl_li_shipping_order_allocNUMERICThe order level shipping (pro-rated).No
lcl_li_gross_merchandise_valueNUMERICThe gross merchandise value of the line item (in tendered currency).No
std_li_promo_discNUMERICThe line item promotional discounts associated with the line item.No
std_li_promo_disc_order_allocNUMERICThe order level promotional discounts associated with the line item (pro-rated).No
std_li_promo_disc_ship_allocNUMERICThe line item shipping level promotional discounts associated with the line item (pro-rated).No
std_li_manual_discNUMERICThe line item manual discounts associated with the line item.No
std_li_manual_disc_order_allocNUMERICThe order level manual discounts associated with the line item (pro-rated).No
std_li_manual_disc_ship_allocNUMERICThe shipping level manual discounts associated with the line item (pro-rated).No
std_li_taxNUMERICThe line item level tax.No
std_li_tax_order_allocNUMERICThe order level tax (pro-rated).No
std_li_shippingNUMERICThe line item level shipping.No
std_li_shipping_order_allocNUMERICThe order level shipping (pro-rated).No
std_li_gross_merchandise_valueNUMERICThe gross merchandise value of the line item as determined by the attribution of promotional GMV to promotions.No