Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Import two tables from two DB as UNION

Hello
I want to compare data between two companies,
two companies are from two DB (same server, and the same structure) .
I want to import tables as UNION.
Is it possible and how?
Thanks
(In QLICK VIEW this is possible)
  • Anonymous's avatar
    Anonymous
    9 years ago

    Thank you all

7 Replies

  • sokg's avatar
    sokg
    Icon for Solution Supplier rankSolution Supplier

    Do you know the difference  between merge and append?

    • Anonymous's avatar
      Anonymous
      Not applicable

      did not know before, I read about MERGE, I did not find APPEND
      1. Still if I write a query, I am in the DB environment of one company.
      2. I also do not need the MATCHED, because I want all records, the only field that is changed is the company name.


      The question is, how can I see the two tables together

      And thanks again

      • Anonymous's avatar
        Anonymous
        Not applicable

        Thank you all

  • It is also possible in Power BI

    Before using Append to create one table with records from both tables create a custom column "Source" with values to mark the records with their source

  • Anonymous's avatar
    Anonymous
    Not applicable
    Hello Tom
    At first, I was looking for the MERGE in SQL, it was my mistake,
    after that I found it in the help of POWER BI thanks to you.