Life Tables
@owid.life_tables
@owid.life_tables
CREATE TABLE owid_diff_ratios (
"country" VARCHAR,
"year" INTEGER,
"age" VARCHAR,
"type" VARCHAR,
"life_expectancy_fm_diff" FLOAT,
"life_expectancy_fm_ratio" FLOAT,
"central_death_rate_mf_ratio" FLOAT
);
CREATE TABLE owid_life_tables_1 (
"type" VARCHAR,
"location" VARCHAR,
"year" INTEGER,
"sex" VARCHAR,
"age" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"average_survival_length" FLOAT,
"number_survivors" FLOAT,
"number_deaths" FLOAT,
"number_person_years_lived" FLOAT,
"number_person_years_remaining" FLOAT,
"life_expectancy" FLOAT,
"life_expectancy_fm_diff" FLOAT,
"life_expectancy_fm_ratio" FLOAT,
"central_death_rate_mf_ratio" FLOAT,
"probability_of_survival" FLOAT,
"survivorship_ratio" FLOAT
);
CREATE TABLE owid_life_tables_2 (
"country" VARCHAR,
"year" INTEGER,
"sex" VARCHAR,
"age" VARCHAR,
"type" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"average_survival_length" FLOAT,
"number_survivors" FLOAT,
"number_deaths" FLOAT,
"number_person_years_lived" FLOAT,
"number_person_years_remaining" FLOAT,
"life_expectancy" FLOAT,
"probability_of_survival" FLOAT,
"survivorship_ratio" FLOAT
);
CREATE TABLE owid_period_1x1 (
"country" VARCHAR,
"year" VARCHAR,
"age" VARCHAR,
"sex" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"avg_survival_length" FLOAT,
"num_survivors" UINTEGER,
"num_deaths" INTEGER,
"num_person_years_lived" UINTEGER,
"num_person_years_remaining" UINTEGER,
"life_expectancy" FLOAT
);
CREATE TABLE owid_period_1x10 (
"country" VARCHAR,
"year" VARCHAR,
"age" VARCHAR,
"sex" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"avg_survival_length" FLOAT,
"num_survivors" UINTEGER,
"num_deaths" INTEGER,
"num_person_years_lived" UINTEGER,
"num_person_years_remaining" UINTEGER,
"life_expectancy" FLOAT
);
CREATE TABLE owid_period_1x5 (
"country" VARCHAR,
"year" VARCHAR,
"age" VARCHAR,
"sex" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"avg_survival_length" FLOAT,
"num_survivors" UINTEGER,
"num_deaths" INTEGER,
"num_person_years_lived" UINTEGER,
"num_person_years_remaining" UINTEGER,
"life_expectancy" FLOAT
);
CREATE TABLE owid_period_5x1 (
"country" VARCHAR,
"year" VARCHAR,
"age" VARCHAR,
"sex" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"avg_survival_length" FLOAT,
"num_survivors" UINTEGER,
"num_deaths" INTEGER,
"num_person_years_lived" UINTEGER,
"num_person_years_remaining" UINTEGER,
"life_expectancy" FLOAT
);
CREATE TABLE owid_period_5x10 (
"country" VARCHAR,
"year" VARCHAR,
"age" VARCHAR,
"sex" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"avg_survival_length" FLOAT,
"num_survivors" UINTEGER,
"num_deaths" INTEGER,
"num_person_years_lived" UINTEGER,
"num_person_years_remaining" UINTEGER,
"life_expectancy" FLOAT
);
CREATE TABLE owid_period_5x5 (
"country" VARCHAR,
"year" VARCHAR,
"age" VARCHAR,
"sex" VARCHAR,
"central_death_rate" FLOAT,
"probability_of_death" FLOAT,
"avg_survival_length" FLOAT,
"num_survivors" UINTEGER,
"num_deaths" INTEGER,
"num_person_years_lived" UINTEGER,
"num_person_years_remaining" UINTEGER,
"life_expectancy" FLOAT
);
Anyone who has the link will be able to view this.