Icon

02_​Data_​Merging_​Solution

Data Merging - Solution

Solution to exercise 2 for the KNIME Analytics Platform for Data Wranglers course
- Convert a column from number to string
- Concatenate data from two different sources
- Perform a lookup operation
- Join two database tables (using the DB Joiner node) and read database data into KNIME
- Join two local tables








Exercise 2: Join and ConcatenateIn this exercise you combine data by concatenating and joining tables and perform a lookup operation. 2) Join the information on the online purchases with the prices of the products 2.1 Join the "TransactionsOnline" and "ProductNrAndPrize" tables directly on the database (DB Joiner) 2.2 Read the joined table into KNIME 3) Add the location information to each purchase in a store based on the StoreID (Joiner node) 1) Concatenate customer information data from the two different systems into one table 1.1 Convert the "Newsletter" column from number to string in the table from the system 1 1.2 Concatenate the customer data from the two systems 1.3 Add a constant value column with the string value "unknown" to the emails to remove 1.4 Replace these emails with the value "unknown" in the customer information table Product ID and PriceTransactions OnlineCustomer InformationSystem 1Store InformationCustomer InformationSystem 2Transactions StoreNewsletter to StringConnect to Databaseemails to removereplacement=unknownreplace the emails DB Table Selector DB Table Selector DB Joiner DB Reader DB Reader Concatenate CSV Reader Excel Reader Table Reader Table Reader Number To String SQLite Connector Joiner Table Creator ConstantValue Column Cell Replacer Exercise 2: Join and ConcatenateIn this exercise you combine data by concatenating and joining tables and perform a lookup operation. 2) Join the information on the online purchases with the prices of the products 2.1 Join the "TransactionsOnline" and "ProductNrAndPrize" tables directly on the database (DB Joiner) 2.2 Read the joined table into KNIME 3) Add the location information to each purchase in a store based on the StoreID (Joiner node) 1) Concatenate customer information data from the two different systems into one table 1.1 Convert the "Newsletter" column from number to string in the table from the system 1 1.2 Concatenate the customer data from the two systems 1.3 Add a constant value column with the string value "unknown" to the emails to remove 1.4 Replace these emails with the value "unknown" in the customer information table Product ID and PriceTransactions OnlineCustomer InformationSystem 1Store InformationCustomer InformationSystem 2Transactions StoreNewsletter to StringConnect to Databaseemails to removereplacement=unknownreplace the emails DB Table Selector DB Table Selector DB Joiner DB Reader DB Reader Concatenate CSV Reader Excel Reader Table Reader Table Reader Number To String SQLite Connector Joiner Table Creator ConstantValue Column Cell Replacer

Nodes

Extensions

Links