Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Joining 2 or more tables with similar columns but from different Protocols

Solved2.36K views28th September 2022Dashboard Dashboard App multiple tables
1
Nathan Sciani [DevOps Member]481 28th September 2022 0 Comments

I am trying to join five tables displaying the same information, but the table's data is sourced from different protocols.

I have created separate queries to recall fuel data and consumption rates and filtered them by using the join function to get Element names. (Thanks to the Dojo Q earlier last month.)

Now that I have created each query, I thought I would be able to overlay the tables into one big table and then possibly be able to apply a drop-down filter to narrow down the results.

I may be doing this all wrong, too and there may be a better or more efficient way of doing what I want.

Any help would be much appreciated.

Nathan Sciani [DevOps Member] Selected answer as best 28th September 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
7
Gilles Bara [SLC] [DevOps Enabler]6.80K Posted 28th September 2022 1 Comment

What you are trying to achieve is a common use case, for which GQI currently has no baked in solution yet. Performing a join operation will make a table horizontally grow in size: we are adding more columns. But what you want to achieve is joining vertically. There is a way to do this, but I have to warn you, it is quite extensive to achieve:

  1. First of all, you will want those 5 tables to have an extra identifier column that contains a value that will not occur in the other tables. This can be as simple as a column that contains all 1's for table one, 2's for table 2, and so on.
    In a query this translates to a column concat manipulation, where you can pick any column, and just type a value in the format. (1 for the first table, 2 for the second table, ...).
  2. Then we want to outer join each table sequentially, joined on that unique column we added in step 1. This will result in one huge table with all the columns and all the rows of the 5 tables. By design, because we performed an outer join, the columns from the other tables will contain nothing and we can use that to our advantage in our next step: merging.
  3. We need to merge all the info of the columns that represent the same info, together in a new column. This needs to be done for all columns.
    This again can be achieved by a column concat manipulation, but now the columns that you select do matter, and the format needs to be {0}{1}{2}{3}{4} (in case you have 5 columns in each table).
  4. As a final step we can get rid of the initial columns and clean up the result. We will end up with a vertically joined table.
    This is done with a simple select operator.

Be aware that I only illustrated this for vertically joining 2 tables that had 2 columns. The amount of effort scales linearly with the amount of tables you want to join. This is far from ideal and in the future there will probably be an alternative that is easier to set up, but for now this is the only way, I'm afraid.

Good luck.

Nathan Sciani [DevOps Member] Selected answer as best 28th September 2022
Nathan Sciani [DevOps Member] commented 28th September 2022

Thanks Gilles. this looks awesome!
Of course it is never a 5min job.
I will give it a go and see how it turns out.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Alarm Dashboard PDF/CSV Export 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin