I took the Coursera online courses about IBM Data Science.
There are two parts in this course:
This is the first table I created.
For the next question, I created several tables:
Then I loaded the data into the tables:
Next are some functions I used in SQL:
First, I created a PETSALE table, then I loaded data into it.
Here are some questions about joining tables (using tables I created above):
I used three data sets here.
This dataset contains a selection of six socioeconomic indicators of public health significance and a “hardship index,” for each Chicago community area, for the years 2008 – 2012.
This dataset shows all school level performance data used to create CPS School Report Cards for the 2011-2012 school year.
This dataset reflects reported incidents of crime (with the exception of murders where data exists for each victim) that occurred in the City of Chicago from 2001 to present, minus the most recent seven days.
First, I downloaded the datasets. Then I store the datasets in database table.
I named the new tables as follows:
Next, I loaded the SQL extension and established a connection with the database.
Then, I entered my db2 connection string.
Here are the samples of my database table: