cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
ENTHU
Level IV

Joining tables with different column lengths

Hi,

 

I have 2 tables say A and B. Table has a number columns including name.Table A has 10 names.Table B is a referencelist which has 1000 names and corresponding ages. Is there a way to join the 2 tables so that the new joined table has only 10 names from Table A and respective ages from Table B?

when I tried this , got an error saying columns do not match.

 

TIA 

4 REPLIES 4
txnelson
Super User

Re: Joining tables with different column lengths

Tables==>Join

will do exactly this.  Just select the columns you want to match on, and then select to "Include non-matches" for the main table(your table with 10 names).  The resulting table will have only your 10 names.

join.PNG

Jim
ENTHU
Level IV

Re: Joining tables with different column lengths

This works! Thanks for the quick reply.

But the joined table now has 2 columns named as age.Is there a way to retain only one?

txnelson
Super User

Re: Joining tables with different column lengths

If you look at my last response, you will see that one of the selections I made on the Dialog for the Join Platform, is called "Merge same name columns".  This will match names.

If you open up the Tables==>Join dialog, you can click on the "Help" button and it will display information about all of the selections and settings availabel to the platform.  You need to familiarize yourself with the Help environment.  It is a very quick and easy way to learn all about any of the platforms.

 

Jim
ENTHU
Level IV

Re: Joining tables with different column lengths

Thanks. I had made right selections.But the problem was one table had column name Age and another age.

Recommended Articles