---
schema_version: "1"
id: db59f7cd5d17561e72746413566a1ab63cd6a60bc8f847d2e8ec05bde9644591
title: ccdw_aggr_sales_summary
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/b2c-commerce/guides/jdbc/jdbc_ccdw_aggr_sales_summary.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/jdbc_ccdw_aggr_sales_summary.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: bec506a6461123d20617e9addc93b1e04358e3a2e3a1eb7c8624d4b3fab78887
products:
  - Composable Storefront
  - Salesforce APIs
---
# ccdw_aggr_sales_summary

This table provides a daily summary of sales metrics aggregated by various dimensions. This table is aggregated from [`ccdw_fact_line_item`](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/jdbc_ccdw_fact_line_item.md)

| Column Alias                        | Data Type | Key    | Description                                                                                                                                                                                             | Index? |
| ----------------------------------- | --------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `submit_date`                       | DATE      |        | Date of the sales submission.                                                                                                                                                                           | Yes    |
| `business_channel_id`               | SMALLINT  | **FK** | Foreign key to [`ccdw_dim_business_channel`](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/jdbc_ccdw_dim_business_channel.md).                                                                                                                        | Yes    |
| `registered`                        | BOOLEAN   |        | Boolean indicating if the customer was registered.                                                                                                                                                      | Yes    |
| `site_id`                           | SMALLINT  | **FK** | Foreign key to [`ccdw_dim_site`](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/jdbc_ccdw_dim_site.md).                                                                                                                                                | Yes    |
| `first_time_buyer`                  | BOOLEAN   |        | Boolean indicating if the customer was a first-time buyer across any site in the realm. Includes orders placed in sessions with tracking disabled (dw_dnt = 1) where buyer status cannot be established | Yes    |
| `device_class_code`                 | VARCHAR   |        | Device class code from [`ccdw_dim_user_agent`](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/jdbc_ccdw_dim_user_agent.md).                                                                                                                            | Yes    |
| `locale_code`                       | VARCHAR   |        | Locale code from [`ccdw_dim_locale`](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/jdbc_ccdw_dim_locale.md).                                                                                                                                          | Yes    |
| `num_orders`                        | INTEGER   |        | Total number of orders.                                                                                                                                                                                 | No     |
| `num_units`                         | INTEGER   |        | Total number of units sold.                                                                                                                                                                             | No     |
| `std_revenue`                       | NUMERIC   |        | Total revenue in standard currency. This column is aggregated from `std_li_gross_merchandise_value`                                                                                                     | No     |
| `std_tax`                           | NUMERIC   |        | Total tax in standard currency.                                                                                                                                                                         | No     |
| `std_shipping`                      | NUMERIC   |        | Total shipping cost in standard currency.                                                                                                                                                               | No     |
| `std_total_discount`                | NUMERIC   |        | Total discount in standard currency.                                                                                                                                                                    | No     |
| `std_promotional_order_discount`    | NUMERIC   |        | Promotional discount applied at the order level in standard currency.                                                                                                                                   | No     |
| `std_promotional_shipping_discount` | NUMERIC   |        | Promotional discount applied to shipping in standard currency.                                                                                                                                          | No     |
| `std_promotional_product_discount`  | NUMERIC   |        | Promotional discount applied to products in standard currency.                                                                                                                                          | No     |
| `std_manual_order_discount`         | NUMERIC   |        | Manual discount applied at the order level in standard currency.                                                                                                                                        | No     |
| `std_manual_shipping_discount`      | NUMERIC   |        | Manual discount applied to shipping in standard currency.                                                                                                                                               | No     |
| `std_manual_product_discount`       | NUMERIC   |        | Manual discount applied to products in standard currency.                                                                                                                                               | No     |
| `traffic_medium`                    | VARCHAR   |        | The traffic medium from [`ccdw_dim_traffic_source`](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/jdbc_ccdw_dim_traffic_source.md) `medium` (for example, "organic", "paid"). Historical rows can be null.                                            | No     |

<!-- **Indices**: `submit_date, business_channel_id,registered,site_id,first_time_buyer,device_class_code, locale_code` -->
