I have two tables, that I need to merge. One table includes the sales information per account, the second table includes the sales staff assigned to each account. Each table includes the account ID, which I am using to connect the two tables. Here is a brief example of the two tables:
[TABLE="width: 333"]
<tbody>[TR]
[TD]Account ID[/TD]
[TD]Name Of Account[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Apple[/TD]
[TD]$500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Google[/TD]
[TD]$0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Microsoft[/TD]
[TD]$200[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 271"]
<tbody>[TR]
[TD]Account ID[/TD]
[TD]Sales Person Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jim[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]James[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Janet[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Joe[/TD]
[/TR]
</tbody>[/TABLE]
What I would like the output to look like is:
Apple
This way, I can sort by sales (or the other various metrics I have on the account level) and immediately know which sales people to praise or provide "additional guidance" to.
The output I can currently getting is:
[TABLE="width: 95"]
<tbody>[TR]
[TD]Row Labels[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"] James[/TD]
[/TR]
[TR]
[TD="align: right"] Jane[/TD]
[/TR]
[TR]
[TD="align: right"] Janet[/TD]
[/TR]
[TR]
[TD="align: right"] Jim[/TD]
[/TR]
[TR]
[TD="align: right"] Joe[/TD]
[/TR]
[TR]
[TD="align: right"] John[/TD]
[/TR]
[TR]
[TD]Google[/TD]
[/TR]
[TR]
[TD]
[/TR]
[TR]
[TD]
[/TR]
[TR]
[TD]
[/TR]
[TR]
[TD]
[/TR]
[TR]
[TD]
[/TR]
[TR]
[TD]
[/TR]
[TR]
[TD]Microsoft[/TD]
[/TR]
[TR]
[TD="align: right"] James[/TD]
[/TR]
[TR]
[TD="align: right"] Jane[/TD]
[/TR]
[TR]
[TD="align: right"] Janet[/TD]
[/TR]
[TR]
[TD="align: right"] Jim[/TD]
[/TR]
[TR]
[TD="align: right"] Joe[/TD]
[/TR]
[TR]
[TD="align: right"] John[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[/TR]
</tbody>[/TABLE]
Any help in getting me to my desired output would be greatly appreciated.
Thank you,
Eli
[TABLE="width: 333"]
<tbody>[TR]
[TD]Account ID[/TD]
[TD]Name Of Account[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Apple[/TD]
[TD]$500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Google[/TD]
[TD]$0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Microsoft[/TD]
[TD]$200[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 271"]
<tbody>[TR]
[TD]Account ID[/TD]
[TD]Sales Person Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jim[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]James[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Janet[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Joe[/TD]
[/TR]
</tbody>[/TABLE]
What I would like the output to look like is:
Apple
Jim
Jane
GoogleJohn
MicrosoftJames
Janet
Joe
This way, I can sort by sales (or the other various metrics I have on the account level) and immediately know which sales people to praise or provide "additional guidance" to.
The output I can currently getting is:
[TABLE="width: 95"]
<tbody>[TR]
[TD]Row Labels[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"] James[/TD]
[/TR]
[TR]
[TD="align: right"] Jane[/TD]
[/TR]
[TR]
[TD="align: right"] Janet[/TD]
[/TR]
[TR]
[TD="align: right"] Jim[/TD]
[/TR]
[TR]
[TD="align: right"] Joe[/TD]
[/TR]
[TR]
[TD="align: right"] John[/TD]
[/TR]
[TR]
[TD]Google[/TD]
[/TR]
[TR]
[TD]
James
[/TD][/TR]
[TR]
[TD]
Jane
[/TD][/TR]
[TR]
[TD]
Janet
[/TD][/TR]
[TR]
[TD]
Jim
[/TD][/TR]
[TR]
[TD]
Joe
[/TD][/TR]
[TR]
[TD]
John
[/TD][/TR]
[TR]
[TD]Microsoft[/TD]
[/TR]
[TR]
[TD="align: right"] James[/TD]
[/TR]
[TR]
[TD="align: right"] Jane[/TD]
[/TR]
[TR]
[TD="align: right"] Janet[/TD]
[/TR]
[TR]
[TD="align: right"] Jim[/TD]
[/TR]
[TR]
[TD="align: right"] Joe[/TD]
[/TR]
[TR]
[TD="align: right"] John[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[/TR]
</tbody>[/TABLE]
Any help in getting me to my desired output would be greatly appreciated.
Thank you,
Eli