7/30/2019 Unemployment Spain Database
1/14
ROBERTO MEDIERO MARTROYA OLYAZADEH
7/30/2019 Unemployment Spain Database
2/14
A short Introduction
Final UML Diagram
The result of logicalDatabase model and SQLqueries
Screenshot of queries inGVsig
7/30/2019 Unemployment Spain Database
3/14
To see which area of Spain has the more unemployment
To make comparison between different type of unemployment for young
and adult.
Try to find relation between population and different type ofemployment.
7/30/2019 Unemployment Spain Database
4/14
Final UML Diagram
7/30/2019 Unemployment Spain Database
5/14
Data
The data we found:
1. Shape file of spain and import it to
Pgadmin. 2. Table of population (Statistical on
web page of Spain )
3. Tables of unemployment fordiffrente sectors per province in Spain(web page of Instituto Nacional deEmpleo )
7/30/2019 Unemployment Spain Database
6/14
1. Provinces with more than 2000 men older than 25years old unemployed in the agriculture sector in
Spain. 2. Percentage of unemployed population in each
province and classification of quantity ofunemployments.
3. View that shows the percentage of unemploymentof women who are more older than 25 years old inthe servicios sector.
Querries
7/30/2019 Unemployment Spain Database
7/14
Provinces with more than 2000 mens olders than 25
years old unemployeds in the agriculture sector inSpain.
CREATE VIEW unmeplo_agri_menmore25 AS
SELECT province_name, men_more25, the_geom FROM agricultura a,esp_provincias es
WHERE a.province_name = es.nombre99 AND a.men_more25>2000;
INSERT INTO geometry_columns values ('', 'public','unmeplo_agri_menmore25','the_geom', 2, -1, 'MULTIPOLYGON');
One
7/30/2019 Unemployment Spain Database
8/14
One
7/30/2019 Unemployment Spain Database
9/14
Percentage of unemployed population in each province
and classification of quantity of unemployments.
CREATE VIEW percent_unemployment3 AS
select u.total, u.province_name, round((u.total/p.totalpop::numeric)*100)AS percent_unemployments, es.the_geom
FROM unemployments u, population p, esp_provincias es
WHERE u.province_name = p.province_name AND
p.province_name=es.nombre99;
INSERT INTO geometry_columns values ('', 'public',
'percent_unemployment3','the_geom', 2, -1, 'MULTIPOLYGON');
Two
7/30/2019 Unemployment Spain Database
10/14
Two
7/30/2019 Unemployment Spain Database
11/14
View that shows the percentage of unemployment of women
who are more than 25 years old limit by 10 in servicios sector.
CREATE VIEW percent_women_serv_unemploy AS Select s.province_name, s.women_more25,
round((s.women_more25/s.total::numeric)*100) ASpercent_womenUnemployment, es.the_geom
FROM servicios s, esp_provincias es WHERE s.province_name = es.nombre99 ORDER BY 3 DESC LIMIT 10;
INSERT INTO geometry_columns values ('', 'public','percent_women_serv_unemploy','the_geom', 2, -1, 'MULTIPOLYGON');
Three
7/30/2019 Unemployment Spain Database
12/14
Three
7/30/2019 Unemployment Spain Database
13/14
Conclussion
7/30/2019 Unemployment Spain Database
14/14
We would need more data from employed peopleand also imigration to conclude for better result.
We can do more queries for finding theunemployment on each sector.
Recommendation
Top Related