Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Join two tables but keep specific fields from both

hovicke
5 - Atom

Hi - I have two tables that I need to combine by 'Employee ID'. Table A has employee ID as well as some other columns with entitlement information about the employee. Table B has employee ID as well as the employee's supervisor name and ID in separate columns along with a bunch of other random columns without information I care about. How would I join the two tables together to keep all of the information from table A, but just add two columns that match the employee ID from table A to the employee ID from table B and include the supervisor name and ID? 

 

I don't want to change the number of rows in the output table from the number of rows in Table A (table B is more of a directory that I am using to just pull the employees supervisor info from).

 

Edited with example table below... the actual files are bigger and more complex, but this is what I'm trying to accomplish...

 

Table A:

Employee IDAccessLevel
123group 1low
456group 2medium
789group 3high

 

Table B:

Employee IDUselessSupervisor IDSupervisor NameUselessUseless
123a321Johnbc
234a432Brettbc
345a543Ryanbc
456a654Jamesbc
567a765Brendabc
678a876Katebc
789a987Janebc


Output:

Employee IDAccessLevelSupervisor IDSupervisor Name
123group 1low321John
456group 2medium654James
789group 3high987Jane
1 REPLY 1
Yoshiro_Fujimori
15 - Aurora

Hi @hovicke ,

 

Join tool allows you to select fields you want to output.

So you can uncheck the unnecessary fields as below.

Yoshiro_Fujimori_0-1683147637759.png

 

I hope this answered to your question.

Labels
Top Solution Authors