Skip to main content
Solved

Comparing the values of multiple tables from two different sources

  • March 26, 2020
  • 1 reply
  • 156 views

I'm aiming to compare the values of multiple tables from two different data sources with FME. I've already prepared two tables, that list all values from either data source.

The 'left data source', consisting of two tables (Fruit and Vegetable) and their values over various columns:

IdLeftTableNameLeftColumnNameLeftValue1FruitNameApple1FruitColorRed1FruitKcal522FruitNameBanana2FruitColorYellow2FruitKcal893VegetableNameCarrot3VegetableColorOrange3VegetableShapePointy

 

The 'right data source', consisting of two tables (FRUITS and VEGETABLES) and their values over various columns:

IdRightTableNameRightColumnNameRightValue1FRUITSDESCRIPTIONApple1FRUITSCOLORYellow1FRUITSCALORIES522FRUITSDESCRIPTIONBanana2FRUITSCOLORYellow2FRUITSCALORIES903VEGETABLESDESCRIPTIONCarrot3VEGETABLESCOLOROrange3VEGETABLESSHAPEPointy

 

The tables and columns of both data sources can be related using the following mapping:

LeftTableNameLeftColumnNameRightTableNameRightColumnNameFruitNameFRUITSDESCRIPTIONFruitColorFRUITSCOLORFruitKcalFRUITSCALORIESVegetableNameVEGETABLESDESCRIPTIONVegetableColorVEGETABLESCOLORVegetableShapeVEGETABLESSHAPE

 

How can I implement the above mapping to compare the values from both data sources? The desired result looks like this:

IdLeftTableNameLeftColumnNameLeftValueRightValue1FruitNameAppleApple1FruitColorRedYellow1FruitKcal52522FruitNameBananaBanana2FruitColorYellowYellow2FruitKcal89903VegetableNameCarrotCarrot3VegetableColorOrangeOrange3VegetableShapePointyPointy

Best answer by fentanyl

After trying a bit more, I came up with this solution:

 

View original
Did this help you find an answer to your question?

1 reply

  • Author
  • Best Answer
  • March 26, 2020

After trying a bit more, I came up with this solution:

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings