Without using an explicit JOIN operator ind the Per Capita Income of the Community Area which has a school Safety Score of 1.
SELECT per_capita_income,community_area_name
FROM CENSUS_DATA
where community_area_name =
(SELECT community_area_name FROM CHICAGO_PUBLIC_SCHOOLS where safety_score='1' )
response is "per_capita_income" "community_area_name" there is no value??? Thanks everyone for all response below but the result did not changed, there is no value, however i tried:
SELECT community_area_name FROM CHICAGO_PUBLIC_SCHOOLS
where safety_score='1'
and get the result as 'WASHINGTON PARK' and did seqond query as
SELECT per_capita_income,community_area_name FROM CENSUS_DATA
where community_area_name = 'WASHINGTON PARK'
I've got again;
per_capita_income community_area_name
I've checked below code to confirm and get all per_capita_income values inc. Washington Park
SELECT per_capita_income,community_area_name FROM CENSUS_DATA
so,finally I could not get the capita_income value. The data is in the below links
CENSUS_DATA:
https://ibm.box.com/shared/static/05c3415cbfbtfnr2fx4atenb2sd361ze.csv
CHICAGO_PUBLIC_SCHOOLS
https://ibm.box.com/shared/static/f9gjvj1gjmxxzycdhplzt01qtz0s7ew7.csv
CHICAGO_CRIME_DATA:
https://ibm.box.com/shared/static/svflyugsr9zbqy5bmowgswqemfpm1x7f.csv