adding tables with data

This commit is contained in:
Andy Eschbacher
2016-04-14 09:48:46 -04:00
parent 4f1d4c4250
commit 91e1be0f8a
2 changed files with 142 additions and 0 deletions
@@ -0,0 +1,129 @@
CREATE TABLE obs_3e7cc9cfd403b912c57b42d5f9195af9ce2f3cdb (
cartodb_id integer,
the_geom geometry(Geometry,4326),
the_geom_webmercator geometry(Geometry,3857),
geoid text,
total_pop double precision,
male_pop double precision,
female_pop double precision,
median_age double precision,
white_pop double precision,
black_pop double precision,
asian_pop double precision,
hispanic_pop double precision,
amerindian_pop double precision,
other_race_pop double precision,
two_or_more_races_pop double precision,
not_hispanic_pop double precision,
not_us_citizen_pop double precision,
workers_16_and_over double precision,
commuters_by_car_truck_van double precision,
commuters_drove_alone double precision,
commuters_by_carpool double precision,
commuters_by_public_transportation double precision,
commuters_by_bus double precision,
commuters_by_subway_or_elevated double precision,
walked_to_work double precision,
worked_at_home double precision,
children double precision,
households double precision,
population_3_years_over double precision,
in_school double precision,
in_grades_1_to_4 double precision,
in_grades_5_to_8 double precision,
in_grades_9_to_12 double precision,
in_undergrad_college double precision,
pop_25_years_over double precision,
high_school_diploma double precision,
less_one_year_college double precision,
one_year_more_college double precision,
associates_degree double precision,
bachelors_degree double precision,
masters_degree double precision,
pop_5_years_over double precision,
speak_only_english_at_home double precision,
speak_spanish_at_home double precision,
pop_determined_poverty_status double precision,
poverty double precision,
median_income double precision,
gini_index double precision,
income_per_capita double precision,
housing_units double precision,
vacant_housing_units double precision,
vacant_housing_units_for_rent double precision,
vacant_housing_units_for_sale double precision,
median_rent double precision,
percent_income_spent_on_rent double precision,
owner_occupied_housing_units double precision,
million_dollar_housing_units double precision,
mortgaged_housing_units double precision,
families_with_young_children double precision,
two_parent_families_with_young_children double precision,
two_parents_in_labor_force_families_with_young_children double precision,
two_parents_father_in_labor_force_families_with_young_children double precision,
two_parents_mother_in_labor_force_families_with_young_children double precision,
two_parents_not_in_labor_force_families_with_young_children double precision,
one_parent_families_with_young_children double precision,
father_one_parent_families_with_young_children double precision,
men_45_to_64 double precision,
men_45_to_49 double precision,
men_50_to_54 double precision,
men_55_to_59 double precision,
men_60_61 double precision,
men_62_64 double precision,
black_men_45_54 double precision,
black_men_55_64 double precision,
hispanic_men_45_54 double precision,
hispanic_men_55_64 double precision,
white_men_45_54 double precision,
white_men_55_64 double precision,
asian_men_45_54 double precision,
asian_men_55_64 double precision,
men_45_64_less_than_9_grade double precision,
men_45_64_grade_9_12 double precision,
men_45_64_high_school double precision,
men_45_64_some_college double precision,
men_45_64_associates_degree double precision,
men_45_64_bachelors_degree double precision,
men_45_64_graduate_degree double precision,
father_in_labor_force_one_parent_families_with_young_children double precision,
pop_15_and_over double precision,
pop_never_married double precision,
pop_now_married double precision,
pop_separated double precision,
pop_widowed double precision,
pop_divorced double precision,
commuters_16_over double precision,
commute_less_10_mins double precision,
commute_10_14_mins double precision,
commute_15_19_mins double precision,
commute_20_24_mins double precision,
commute_25_29_mins double precision,
commute_30_34_mins double precision,
commute_35_44_mins double precision,
commute_45_59_mins double precision,
commute_60_more_mins double precision,
aggregate_travel_time_to_work double precision,
income_less_10000 double precision,
income_10000_14999 double precision,
income_15000_19999 double precision,
income_20000_24999 double precision,
income_25000_29999 double precision,
income_30000_34999 double precision,
income_35000_39999 double precision,
income_40000_44999 double precision,
income_45000_49999 double precision,
income_50000_59999 double precision,
income_60000_74999 double precision,
income_75000_99999 double precision,
income_100000_124999 double precision,
income_125000_149999 double precision,
income_150000_199999 double precision,
income_200000_or_more double precision
);
INSERT INTO obs_dump_temp (cartodb_id, the_geom, the_geom_webmercator, geoid, total_pop, male_pop, female_pop, median_age, white_pop, black_pop, asian_pop, hispanic_pop, amerindian_pop, other_race_pop, two_or_more_races_pop, not_hispanic_pop, not_us_citizen_pop, workers_16_and_over, commuters_by_car_truck_van, commuters_drove_alone, commuters_by_carpool, commuters_by_public_transportation, commuters_by_bus, commuters_by_subway_or_elevated, walked_to_work, worked_at_home, children, households, population_3_years_over, in_school, in_grades_1_to_4, in_grades_5_to_8, in_grades_9_to_12, in_undergrad_college, pop_25_years_over, high_school_diploma, less_one_year_college, one_year_more_college, associates_degree, bachelors_degree, masters_degree, pop_5_years_over, speak_only_english_at_home, speak_spanish_at_home, pop_determined_poverty_status, poverty, median_income, gini_index, income_per_capita, housing_units, vacant_housing_units, vacant_housing_units_for_rent, vacant_housing_units_for_sale, median_rent, percent_income_spent_on_rent, owner_occupied_housing_units, million_dollar_housing_units, mortgaged_housing_units, families_with_young_children, two_parent_families_with_young_children, two_parents_in_labor_force_families_with_young_children, two_parents_father_in_labor_force_families_with_young_children, two_parents_mother_in_labor_force_families_with_young_children, two_parents_not_in_labor_force_families_with_young_children, one_parent_families_with_young_children, father_one_parent_families_with_young_children, men_45_to_64, men_45_to_49, men_50_to_54, men_55_to_59, men_60_61, men_62_64, black_men_45_54, black_men_55_64, hispanic_men_45_54, hispanic_men_55_64, white_men_45_54, white_men_55_64, asian_men_45_54, asian_men_55_64, men_45_64_less_than_9_grade, men_45_64_grade_9_12, men_45_64_high_school, men_45_64_some_college, men_45_64_associates_degree, men_45_64_bachelors_degree, men_45_64_graduate_degree, father_in_labor_force_one_parent_families_with_young_children, pop_15_and_over, pop_never_married, pop_now_married, pop_separated, pop_widowed, pop_divorced, commuters_16_over, commute_less_10_mins, commute_10_14_mins, commute_15_19_mins, commute_20_24_mins, commute_25_29_mins, commute_30_34_mins, commute_35_44_mins, commute_45_59_mins, commute_60_more_mins, aggregate_travel_time_to_work, income_less_10000, income_10000_14999, income_15000_19999, income_20000_24999, income_25000_29999, income_30000_34999, income_35000_39999, income_40000_44999, income_45000_49999, income_50000_59999, income_60000_74999, income_75000_99999, income_100000_124999, income_125000_149999, income_150000_199999, income_200000_or_more) VALUES (132625, NULL, NULL, '360470485002', 1655, 1070, 585, 28.8000000000000007, 922, 26, 40, 667, 0, 0, 0, 988, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 578, NULL, NULL, NULL, NULL, NULL, NULL, 1236, 181, 12, 138, 57, 477, 162, NULL, NULL, NULL, NULL, NULL, 66304, 0.349399999999999988, 28291, 637, 59, 21, 0, 1764, 35.2999999999999972, 59, 0, 39, 60, 47, 22, 25, 0, 0, 13, 0, NULL, 12, 64, 6, 15, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 1139, 57, 5, 35, 108, 65, 322, 246, 194, 107, NULL, 10, 0, 37, 71, 0, 27, 19, 16, 11, 32, 108, 96, 57, 58, 22, 14);
CREATE SCHEMA IF NOT EXISTS observatory;
ALTER TABLE obs_3e7cc9cfd403b912c57b42d5f9195af9ce2f3cdb SET SCHEMA observatory;
@@ -0,0 +1,13 @@
CREATE TABLE obs_85328201013baa14e8e8a4a57a01e6f6fbc5f9b1 (
cartodb_id integer,
the_geom geometry(Geometry,4326),
the_geom_webmercator geometry(Geometry,3857),
geoid text
);
INSERT INTO obs_85328201013baa14e8e8a4a57a01e6f6fbc5f9b1(cartodb_id, the_geom, the_geom_webmercator, geoid) VALUES (129734, '0106000020E6100000010000000103000000010000001B000000373465A71F7C52C065A71FD4455A4440AE105663097C52C0016729594E5A4440CFD90242EB7B52C07EA5F3E1595A4440F98381E7DE7B52C0E1CE85915E5A44407A6F0C01C07B52C0E1EB6B5D6A5A44401B9B1DA9BE7B52C03F6F2A52615A444088855AD3BC7B52C088669E5C535A4440E1EA0088BB7B52C0E6E95C514A5A44400CE6AF90B97B52C070D05E7D3C5A44401E85EB51B87B52C0B03A72A4335A4440BAF3C473B67B52C09929ADBF255A4440CD920035B57B52C0454AB3791C5A4440F78DAF3DB37B52C0E09BA6CF0E5A4440DBC2F352B17B52C0703FE081015A444015C440D7BE7B52C05E83BEF4F659444041446ADAC57B52C0EFDFBC38F15944405FB1868BDC7B52C0C03E3A75E559444034BC5983F77B52C0205ED72FD8594440EFFCA204FD7B52C07E384888F25944403ACAC16C027C52C00876FC17085A444056478E74067C52C00FECF82F105A44400FECF82F107C52C0876D8B321B5A4440BB438A01127C52C0DE1CAED51E5A4440B9C15087157C52C034643C4A255A444099F221A81A7C52C0D0EFFB372F5A44404AED45B41D7C52C0785DBF60375A4440373465A71F7C52C065A71FD4455A4440', '0106000020110F0000010000000103000000010000001B00000032BDDDFAFC655FC153A8E8ED80F45241B0FCBD28D7655FC14F4D6A798AF452412123E2FAA3655FC162ED8F6597F45241D9CC0CFF8E655FC1B67D80A59CF45241619957825A655FC1AB01DCDCA9F45241F732233A58655FC1E64AF3BA9FF45241FD0A331C55655FC1BF49541790F45241EE375EE952655FC1CF9272F585F45241AA316F924F655FC1D4F7757776F45241F8F1F9744D655FC1408CFE8D6CF452416B12CA484A655FC156BE40FD5CF45241B8D2542B48655FC149DCA39952F4524175CC65D444655FC106D3B94A43F452418E59D69241655FC1C23D366334F452419AA4818858655FC16C90219128F45241CD18C57164655FC1A533872422F45241BD2B21FD8A655FC1F390C1F614F45241B152F8CBB8655FC14A47B61806F452419ECAC825C2655FC16FDF6F9C23F45241D71BDA54CB655FC11F9B2BC43BF45241144F772DD2655FC116806FD544F45241AB4763B5E2655FC1CE331F2B51F45241DD9333CCE5655FC196244A3E55F45241BF29F5C7EB655FC1FB82AE795CF452419DE2E87DF4655FC145D3439967F45241B8920EABF9655FC1DB285EBD70F4524132BDDDFAFC655FC153A8E8ED80F45241', '360470485002');
CREATE SCHEMA IF NOT EXISTS observatory;
ALTER TABLE obs_85328201013baa14e8e8a4a57a01e6f6fbc5f9b1 SET SCHEMA observatory;