Skip to content

Mission 7 - Joint Tables

Estimated time for completing this mission: 15 mins

Learning Objective

Understanding how to perform SQL-like operations done purely in LOGIBLOX. ​

Scenario

Imagine you have two datasets where you have to map "Suppliers Names" to its "Suppliers IDs". Both datasets contain "Suppliers IDs" as the primary key.

BLOX used in this mission:

  • Basics/Start
  • MyData/lookup_suppliers
  • MyData/business_transactions
  • Database/Join
  • Database/Save

startBlox

BLOX used in this mission

Data

Please download the dataset, which will be used: business_transaction.xlsx and lookup_suppliers.xlsx. The first one is the same dataset you should have created in mission 3.

Steps

Please refer to the Navigation Guide to perform the steps below

  1. In the Flow builder, drag-and-drop all the necessary BLOX listed above
  2. Connect the "Start" BLOX to the "MyData" BLOX
  3. Now, connect both of the datasets BLOX outputs to the "Join" BLOX
  4. Finally, connect the output from "Join" BLOX to "Save" BLOX
  5. In the "Join" BLOX settings we have to specify the column containing the primary key ("Supplier_ID") and the type of join (in our case we need "left" type of join)
  6. In order to save the newly created dataset connect the "Join" to the "Save" BLOX and name the new dataset "data_with_suppliers" in the left side bar of "Save" BLOX and specify the folder "Module 2"
  7. Now, pressing the start button on "Start" BLOX will activate the logics chain and save the outcome under the name and folder specified in the "Save" BLOX. ​ ​

Results and Summary

You can now easily perform all sorts of join operations with two tables. We will use the newly created dataset in next missions for further operations. ​ ​

Image title

Final logic of join operation

Image title

End result of join operation

Well done! Now let's move on to the next mission!