Description of the illustration comsc010.eps
This graphic describes the tables in schema SH.
The costs table has the following attributes:
-
Columns:
prod_id,time_id,promo_id,channel_id,unit_cost, andunit_price -
Relationships:
-
Column
prod_idrelates one or more rows of the tablecoststo one row of the tableproductswith the corresponding value ofprod_id. -
Column
time_idrelates one or more rows of the tablecoststo one row of the tabletimeswith the corresponding value oftime_id.
-
The products table has the following attributes:
-
Columns:
prod_id(primary key),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, andprod_valid -
Relationships:
-
Column
prod_idrelates rows of the tableproductsto one or more rows of the tablesaleswith the corresponding value ofprod_id. -
Column
prod_idrelates rows of the tableproductsto one or more rows of the tablecostswith the corresponding value ofprod_id.
-
The promotions table has the following attributes:
-
Columns:
promo_id(primary key),promo_name,promo_subcategory,promo_subcategory_id,promo_category,promo_category_id,promo_cost,promo_begin_date,promo_end_date,promo_totalandpromo_total_id -
Relationships:
-
Column
promo_idrelates rows of the tablepromotionsto one or more rows of the tablesaleswith the corresponding value ofpromo_id.
-
The sales table has the following attributes:
-
Columns:
prod_id,cust_id,time_id,channel_id,promo_id,quantity_sold, andamount_sold -
Relationships:
-
Column
prod_idrelates one or more rows of the tablesalesto a row of the tableproductswith the corresponding value ofprod_id. -
Column
promo_idrelates one or more rows of the tablesalesto a row of the tablepromotionswith the corresponding value ofpromo_id. -
Column
channel_idrelates one or more rows of the tablesalesto a row of the tablechannelswith the corresponding value ofchannel_id. -
Column
cust_idrelates one or more rows of the tablesalesto a row of the tablecustomerswith the corresponding value ofcust_id. -
Column
times_idrelates one or more rows of the tablesalesto a row of the tabletimeswith the corresponding value oftimes_id.
-
The channels table has the following attributes:
-
Columns:
channel_id(primary key),channel_desc,channel_class,channel_class_id,channel_total, andchannel_total_id -
Relationships:
-
Column
channel_idrelates rows of the tablechannelsto one or more rows of the tablesaleswith the corresponding value ofchannel_id.
-
The customers table has the following attributes:
-
Columns:
cust_id(primary key),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, andcust_valid -
Relationships:
-
Column
cust_idrelates rows of the tablecustomersto one or more rows of the tablesaleswith the corresponding value ofcustomer_id. -
Column
country_idrelates one or more rows of the tablecustomersto one row of the tablecountrieswith the corresponding value ofcountry_id
-
The times table has the following attributes:
-
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, andend_of_fis_year -
Relationships:
-
Column
time_idrelates rows of the tabletimesto one or more rows of the tablesaleswith the corresponding value oftime_id.
-
The countries table has the following attributes:
-
Columns:
country_id(primary key),country_iso_code,country_name,country_subregion,country_subregion_id,country_region,country_region_id,country_total,country_total_id,country_name_hist -
Relationships:
-
Column
country_idrelates rows of the tablecountriesto one or more rows of the tablecustomerswith the corresponding value ofcountry_id.
-