-- May 9 In-Class Exercise Thread
Dimensional tables:
PoliticalParty (name, age, district, occupation, income, education, party affiliation, sex, marital status, year
DistrictData (name, age, zip-code, party-affiliation, sex, district)
Fact table: create a table with the following info:
select political, district, age from PoliticalPary table and select corresponding fields from DistritData to create a fact table:
This table can be used to show who lives in San Jose (or xxx), who voted for a Democratic president with different age levels.
(
Edited: 2018-05-09)
Dimensional tables:
PoliticalParty (name, age, district, occupation, income, education, party affiliation, sex, marital status, year
DistrictData (name, age, zip-code, party-affiliation, sex, district)
Fact table: create a table with the following info:
select political, district, age from PoliticalPary table and select corresponding fields from DistritData to create a fact table:
This table can be used to show who lives in San Jose (or xxx), who voted for a Democratic president with different age levels.