Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Concatenation from two different tables - Explanation Needed

Using the New Column function, I am attempting to concatenate a column from one table with a column in another table.

 

Depending on which table I create the column, it either recognizes one data element or the other.  What's up?

 

 

Tabel A = ID (formatted as Whole Number)

Table B = Product Category (Formatted as Text)

 

Because these live in two different tables, it doesn't seem to recognize that I want to concatenate two elements from two different tables?

 

Thoughts?

 

8 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    I believe that you want to create a Merge or Append query. Kind of sounds like a Merge query is what you are describing.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Greg_Deckler

       

      Possibly, though I am not sure how to do this?

       

      I am siply trying to create a third column in my data that combines the Product with the ID.

       

      Becasue they live in two different tables, the Concatenate function doesn't work (but would if both data elements were in the same table).

       

      Recommendations?

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

        Can you post a short sample of your data? What I am wondering is if there is a common key between your tables. In the Query Editor, on the Home tab all the way to the right is the "Merge Queries" link. This allows you to merge two queries as you are suggesting as long as you have some kind of common key between them.