この図は、スキーマSHの表について説明しています。
コスト表には次の属性があります。
列: prod_id、time_id、promo_id、channel_id、unit_cost、unit_price
関係:
Column prod_id relates one or more rows of the table costs to one row of the table products with the corresponding value of prod_id.
Column time_id relates one or more rows of the table costs to one row of the table times with the corresponding value of time_id.
products表には次の属性があります。
列: 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の対応する値を持つ表salesの1行以上に表製品の行を関連付けます。
列prod_idは、prod_idの対応する値を持つ表コストの1行以上に、表製品の行を関連付けます。
プロモーション表には、次の属性があります。
列: 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表のうちの1行以上に対応する値を持つ1行に関連付けます
sales表には次の属性があります。
列: prod_id、cust_id、time_id、channel_id、promo_id、quantity_sold、amount_sold
関係:
Column prod_id relates one or more rows of the table sales to a row of the table products with the corresponding value of prod_id.
Column promo_id relates one or more rows of the table sales to a row of the table promotions with the corresponding value of promo_id.
Column channel_id relates one or more rows of the table sales to a row of the table channels with the corresponding value of channel_id.
Column cust_id relates one or more rows of the table sales to a row of the table customers with the corresponding value of cust_id.
Column times_id relates one or more rows of the table sales to a row of the table times with the corresponding value of times_id.
チャネル表には次の属性があります。
列: channel_id(主キー)、channel_desc、channel_class、channel_class_id、channel_total、channel_total_id
関係:
列channel_idは、表チャネルの行を、channel_id表のうちの1行以上に対応する値を持つ1行に関連付ける。
customers表には次の属性があります。
列: 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表の行を、sales表のうちの1つ以上の行に対応する値を持つ1行以上の行に関連付けます
Column country_id relates one or more rows of the table customers to one row of the table countries with the corresponding value of 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は、表の行を、time_id表のうちの1行以上に対応する値を持つ1行に関連付けます
国表には、次の属性があります。
列: 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の対応する値を持つ表の顧客の1行以上に、表の国の行を関連付けます。