Icon

08 Database Data Manipulation - Solution

08 Database Data Manipulation - Solution
Annotations and comments
  • Exercise: Database Data Manipulation 1) Execute the metanode below. It writes the joined table containing demographics, travel advisory, and geocoordinates information into a SQLite database. 2) Select the JoinedTable table on the database 3) Calculate the number of rows (countries) in the database table 4) Filter the table to countries where the maximum overall life expectancy is > 80 5) Calculate the numbers of countries with life expectancy >80 in each travel risk category. What is the most common category among these countries? How many countries belong to the risk category 3 (Reconsider travel)?
  • Count of rows
  • Counts by risk levels
  • Filter rows where max LE > 80
  • demographics.xlsx (population)
  • demographics.xlsx (life_expectancy)
  • Only year
  • travel_advidories.csv
  • Inner join on country name
  • Convert change to percentage
  • Create Change column
  • Add Direction column based on +/- change
  • Demographics.sqlite
  • Replace : by -
  • Extract numeric risk level into a separate column
  • Accessed column to Date&Time
  • Manual manipulation
  • geo_coordinates.table

Nodes

Extensions

Links