此图描述了方案 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 表具有以下属性:

列:channel_id(主键)、channel_desc、channel_class、channel_class_id、channel_total 和 channel_total_id

关系:

列 channel_id 将表通道的行与表 sales 的一行或多行关联,对应的值为 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

Times 表具有以下属性:

列:time_id(主键),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 和 end_of_fis_year

关系:

列 time_id 将表次数的行与表 sales 的一行或多行关联,并对应的值为 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。