Icon

07 Join and Concatenate

07 Join and Concatenate
Annotations and comments
  • Exercise: Join 1) Read the population, life expectancy, geo coordinates, and travel advisories data by executing the reader nodes below 2) Join all tables based on the names of the countries. Use inner join. How many rows are there in the final joined table: 174 Were any rows discarded during the joining operation: Yes 3) OPTIONAL: The names of the following countries are written differently in the travel advisories table compared to the other tables. The spelling in the other tables is shown in brackets: - The Gambia (Gambia) - Guinea Bissau (Guinea-Bissau) - The Bahamas (Bahamas) Edit the country names in the travel advisories table manually with the Table Editor node. Join the edited table with the other tables. How many rows are there in the joined table now: 177 Hint! You can drag and drop the files from KNIME Explorer to the workflow editor Change the file paths to workflow relative paths starting with knime://knime.workflow/
  • Exercise: Concatenate 1) Read the life expectancy data from two sources: an Excel sheet that contains the data for countries and a database table that contains the data for continents. 2) Concatenate them into one table. Use union of columns. What happens to the Rank column that is missing in the top table: Those values are shown as missing for the rows from the top table.
  • LifeExpectancy
  • demographics.xlsx (life_expectancy)
  • demographics.xlsx (population)
  • travel_advidories.csv
  • Left Join
  • Demographics.sqlite
  • Corrections
  • geo_coordinates.table

Nodes

Extensions

Links