1 2 3 4 5 6 7
| 2;
"Projection de population 1999-2030 données brutes";
"00001";
"d_indicateurs.v_indgeol_00002_ze";
"Zones d'emploi";
"v_indgeol_00002_ze";
"SELECT (SELECT ze.zon_emp_cod FROM t_ref_geo_zon_emp ze WHERE (ze.zon_emp_id = t.zon_emp_id)) AS ze_cod, (SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2000) AND (t1.zon_emp_id = t.zon_emp_id))) AS pop2000, (SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2010) AND (t1.zon_emp_id = t.zon_emp_id))) AS pop2010, (SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2020) AND (t1.zon_emp_id = t.zon_emp_id))) AS pop2020, (SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2030) AND (t1.zon_emp_id = t.zon_emp_id))) AS pop2030, ((pow(((float4((SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2010) AND (t1.zon_emp_id = t.zon_emp_id)))) / float4((SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2000) AND (t1.zon_emp_id = t.zon_emp_id))))))::double precision, (0.1)::double precision) - (1)::double precision) * (100)::double precision) AS varpoptam2000_2010, ((pow(((float4((SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2020) AND (t1.zon_emp_id = t.zon_emp_id)))) / float4((SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2010) AND (t1.zon_emp_id = t.zon_emp_id))))))::double precision, (0.1)::double precision) - (1)::double precision) * (100)::double precision) AS varpoptam2010_2020, ((pow(((float4((SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2030) AND (t1.zon_emp_id = t.zon_emp_id)))) / float4((SELECT sum(t1.population) AS sum FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2020) AND (t1.zon_emp_id = t.zon_emp_id))))))::double precision, (0.1)::double precision) - (1)::double precision) * (100)::double precision) AS varpoptam2020_2030, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a WHERE ((((t1.annee = 2000) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13)))) AS tauxact_2000, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a WHERE ((((t1.annee = 2010) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13)))) AS tauxact_2010, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a WHERE ((((t1.annee = 2020) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13)))) AS tauxact_2020, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a WHERE ((((t1.annee = 2030) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13)))) AS tauxact_2030, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a, t_ref_dem_sexe s WHERE ((((((t1.annee = 2000) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13))) AND (t1.sex_id = s.sex_id)) AND ((s.sex_cod)::text = '2'::text))) AS tauxactf_2000, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a, t_ref_dem_sexe s WHERE ((((((t1.annee = 2010) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13))) AND (t1.sex_id = s.sex_id)) AND ((s.sex_cod)::text = '2'::text))) AS tauxactf_2010, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a, t_ref_dem_sexe s WHERE ((((((t1.annee = 2020) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13))) AND (t1.sex_id = s.sex_id)) AND ((s.sex_cod)::text = '2'::text))) AS tauxactf_2020, (SELECT ((sum(float4(t1.actifs)) * (100)::double precision) / sum(float4(t1.population))) FROM d_variables.t_024_00005 t1, t_ref_dem_age_03 a, t_ref_dem_sexe s WHERE ((((((t1.annee = 2030) AND (t1.zon_emp_id = t.zon_emp_id)) AND (t1.age_03_id = a.age_03_id)) AND (((a.age_03_cod)::integer >= 4) AND ((a.age_03_cod)::integer <= 13))) AND (t1.sex_id = s.sex_id)) AND ((s.sex_cod)::text = '2'::text))) AS tauxactf_2030, (SELECT (sum(float4(t1.population)) / sum(float4(t1.menages))) FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2000) AND (t1.zon_emp_id = t.zon_emp_id))) AS nbpersmymen_2000, (SELECT (sum(float4(t1.population)) / sum(float4(t1.menages))) FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2010) AND (t1.zon_emp_id = t.zon_emp_id))) AS nbpersmymen_2010, (SELECT (sum(float4(t1.population)) / sum(float4(t1.menages))) FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2020) AND (t1.zon_emp_id = t.zon_emp_id))) AS nbpersmymen_2020, (SELECT (sum(float4(t1.population)) / sum(float4(t1.menages))) FROM d_variables.t_024_00005 t1 WHERE ((t1.annee = 2030) AND (t1.zon_emp_id = t.zon_emp_id))) AS nbpersmymen_2030 FROM d_variables.t_024_00005 t GROUP BY t.zon_emp_id ORDER BY (SELECT ze.zon_emp_cod FROM t_ref_geo_zon_emp ze WHERE (ze.zon_emp_id = t.zon_emp_id));" |
Partager