You are on page 1of 14

ROBERTO MEDIERO MART ROYA OLYAZADEH

A short Introduction Final UML Diagram The result of logical Database model and SQL queries Screenshot of queries in GVsig


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 of employment.

Final UML Diagram

The data we found:

Data

1. Shape file of spain and import it to Pgadmin. 2. Table of population (Statistical on web page of Spain ) 3. Tables of unemployment for diffrente sectors per province in Spain (web page of Instituto Nacional de Empleo )

Querries
1. Provinces with more than 2000 men older than 25 years old unemployed in the agriculture sector in Spain. 2. Percentage of unemployed population in each province and classification of quantity of unemployments. 3. View that shows the percentage of unemployment of women who are more older than 25 years old in the servicios sector.

One
Provinces with more than 2000 mens olders than 25 years old unemployeds in the agriculture sector in Spain.
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

Two
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

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) AS percent_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

Three

Conclussion

Recommendation
We would need more data from employed people and also imigration to conclude for better result. We can do more queries unemployment on each sector. for finding the

You might also like