Icon

02_​Data_​Merging_​Exercise

Data Merging - Exercise

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.. 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 (Number to String node) 1.2 Concatenate the customer data from the two systems (Concatenate node) 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 (Cell Replacer node) 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 node) 2.2 Read the joined table into KNIME (DB Reader node) 3) Add the store location information to each purchase in a store based on the StoreID (Joiner node) Connect to DatabaseProduct ID and PriceTransactions OnlineCustomer InformationSystem 1Store InformationCustomer InformationSystem 2Transactions Storeemails to remove SQLite Connector DB Table Selector DB Table Selector CSV Reader Excel Reader Table Reader Table Reader Table Creator Exercise 2: Join and ConcatenateIn this exercise you combine data by concatenating and joining tables and perform a lookup operation.. 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 (Number to String node) 1.2 Concatenate the customer data from the two systems (Concatenate node) 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 (Cell Replacer node) 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 node) 2.2 Read the joined table into KNIME (DB Reader node) 3) Add the store location information to each purchase in a store based on the StoreID (Joiner node) Connect to DatabaseProduct ID and PriceTransactions OnlineCustomer InformationSystem 1Store InformationCustomer InformationSystem 2Transactions Storeemails to remove SQLite Connector DB Table Selector DB Table Selector CSV Reader Excel Reader Table Reader Table Reader Table Creator

Nodes

Extensions

Links