Sie sind auf Seite 1von 7

Refugees

in the United States


Work with data
- database from the U.S. Department of State, Bureau of Population, Refugee
and Migration (PRM) as our primary database

- It contains information about the numbers of refugees, who resettled in the


United States. Particularly, this database includes the placement state,
placement city, the nationality of the refugees (the country they came from)
and numbers for each year from 2002 until 2016.

- We downloaded all the data in Excel format and had to do multiple


conversions in order to create an SQL file for this database.
Our findings: World

What are the first ten countries with the maximum numbers of refugees?

SELECT nationality, sum(total)


FROM refugees
GROUP BY 1
ORDER BY 2 DESC
What are the first ten countries with the maximum
number of refugees?

https://public.tableau.com/profile/publish/Countrieswithmaximumnumberofrefugees/Sheet1#!/publish-confirm
The U.S.

Which are the first ten states with the most number of refugees?

SELECT plc_state, SUM(total)


FROM refugees
GROUP BY 1
ORDER BY 2 DESC

"California","101637"
"Texas","80926"
"New York","53053"
"Florida","46146"
"Minnesota","40415"
"Washington","39582"
"Arizona","38564"
"Michigan","37608"
"Georgia","34880"
"Pennsylvania","31839"
Missouri There are two peaks in refugees’ number in Missouri: 2009 and 2016. From
what countries did refugees come to Missouri at this time?

How many refugees came to Missouri?


SELECT nationality, SUM(CY2009)
FROM refugees
SELECT plc_state, sum(total)
WHERE plc_state LIKE "Missouri"
FROM refugees
GROUP BY 1
WHERE plc_state LIKE "Missouri"
ORDER BY 2 DESC

Missouri has 16,566 refugees


"Burma","410" "Iraq","383" "Somalia","198" "Bhutan","165" "Cuba","130"

SELECT nationality, SUM(CY2016)


FROM refugees
WHERE plc_state LIKE "Missouri"
GROUP BY 1
ORDER BY 2 DESC

"Dem. Rep. Congo","632" "Somalia","437" "Syria","406" "Iraq","159"


"Burma","108"
Columbia
How many refugees came to Columbia, MO?

SELECT plc_state, plc_city, sum(total)


FROM refugees
WHERE plc_state LIKE "Missouri" AND plc_city LIKE "Columbia"
There are 1,322 refugees in Columbia, MO

What are the countries where refugees came from to Columbia, MO?

SELECT plc_state, plc_city, nationality, sum(total)


FROM refugees
WHERE plc_state LIKE "Missouri" AND plc_city LIKE "Columbia"
GROUP BY nationality
ORDER BY sum(total) DESC

"Missouri","Columbia","Burma","405"
"Missouri","Columbia","Dem. Rep. Congo","189"
"Missouri","Columbia","Iraq","185"
"Missouri","Columbia","Eritrea","145"
"Missouri","Columbia","Somalia","137"

Das könnte Ihnen auch gefallen