此圖說明 SH 綱要中的表格。

成本表格具有下列屬性:

資料欄:prod_id、time_id、promo_id、channel_id、unit_cost 及 unit_price

關係:

資料欄 prod_id 會將表格成本的一或多個資料列與表格產品的一列相關,其對應值為 prod_id。

資料欄 time_id 會將表格成本的一或多個資料列與表格時間的一列相關,其對應值為 time_id。

產品表格具有下列屬性:

欄:prod_id (主鍵)、prod_name、prod_desc、prod_subcategory、prod_subcategory_id、prod_subcategory_desc、prod_category、prod_category_id、prod_category_desc、prod_weight_class、prod_unit_of_measure、prod_pack_size、supplier_id、prod_status、prod_list_price、prod_min_price、prod_total、prod_total_id、prod_src_id、prod_eff_from、prod_eff_to 及 prod_valid

關係:

資料欄 prod_id 會將表格產品的資料列與表格銷售的一或多個資料列相關,其對應值為 prod_id。

資料欄 prod_id 會將表格產品的資料列與表格成本的一或多個資料列相關,其對應值為 prod_id。

促銷表格具有下列屬性:

欄:promo_id (主鍵)、promo_name、promo_subcategory、promo_subcategory_id、promo_category、promo_category_id、promo_cost、promo_begin_date、promo_end_date、promo_total 及 promo_total_id

關係:

資料欄 promo_id 會將表格促銷的資料列與表格銷售的一或多個資料列相關,其對應值為 promo_id。

銷售表格具有下列屬性:

資料欄:prod_id、cust_id、time_id、channel_id、promo_id、quantity_sold 及 amount_sold

關係:

資料欄 prod_id 會將表格銷售的一或多個資料列與表格產品資料列的對應值 prod_id 相關。

資料欄 promo_id 會將表格銷售的一或多個資料列與表格促銷的資料列相關,其對應值為 promo_id。

資料欄 channel_id 會將表格銷售的一或多個資料列關聯至表格通道的資料列,其對應值為 channel_id。

資料欄 cust_id 會將表格銷售的一或多個資料列與對應值為 cust_id 的表格客戶資料列相關。

資料欄 times_id 會將表格銷售的一或多個資料列與表格時間資料列的對應值 times_id 相關。

通道表格具有下列屬性:

資料欄:channel_id (主索引鍵)、channel_desc、channel_class、channel_class_id、channel_total 及 channel_total_id

關係:

資料欄 channel_id 會將表格通道的資料列與表格銷售的一或多個資料列相關,其對應值為 channel_id。

客戶表格具有下列屬性:

欄:cust_id (主鍵)、cust_first_name、cust_last_name、cust_gender、cust_year_of_birth、cust_marital_status、cust_street_address、cust_postal_code、cust_city、cust_city_id、cust_state_province、cust_state_provice_id、country_id、cust_main_phone_number、cust_income_level、cust_credit_limit、cust_email、cust_total、cust_total_id、cust_src_id、cust_eff_from、cust_eff_to 及 cust_valid

關係:

資料欄 cust_id 會將表格客戶的資料列與表格銷售的一或多個資料列相關,其對應值為 customer_id。

資料欄 country_id 將表格客戶的一或多個資料列與表格國家的一個資料列相關,其對應的值為 country_id

時間表格具有下列屬性:

Columns: time_id (primary key), day_name, day_number_in_week, day_number_in_month, calendar_week_number, fiscal_week_number, week_ending_day, week_ending_day_id, calendar_month_number, fiscal_month_number, calendar_month_desc, calendar_month_id, fiscal_month_desc, fiscal_month_id, days_in_cal_month, days_in_fis_month, end_of_cal_month, end_of_fis_month, calendar_month_name, fiscal_month_name, calendar_quarter_desc, calendar_quarter_id, fiscal_quarter_desc, fiscal_quarter_id, days_in_cal_quarter, days_in_fis_quarter, end_of_cal_quarter, end_of_fis_quarter, calendar_quarter_number, fiscal_quarter_number, calendar_year, calendar_year_id, fiscal_year, fiscal_year_id, days_in_cal_year, days_in_fis_year, end_of_cal_year, and end_of_fis_year

關係:

資料欄 time_id 會將表格時間的資料列與表格銷售的一或多個資料列相關,其對應值為 time_id。

國家 / 地區表具有下列屬性:

欄:country_id (主鍵)、country_iso_code、country_name、country_subregion、country_subregion_id、country_region、country_region_id、country_total、country_total_id、country_name_hist

關係:

資料欄 country_id 會將表格國家的資料列與表格客戶的一或多個資料列相關,其對應值為 country_id。