TheCrankyMule
New Member
- Joined
- Dec 20, 2018
- Messages
- 2
Hi All,
This may be an impossible task so bear with me. I have the following raw data:
<tbody>
</tbody>
Then I need to append it to this table:
<tbody>
</tbody>
So that it ends up looking like this:
<tbody>
</tbody>
I was thinking I could use an index match match, but I'm not able to make it work. Anyone have any solutions? Maybe I need to rearrange the data? It's tough, because I'm writing SQL to pull the raw data the way it is, so I'm a bit limited in how I pull it. Thanks so much for your help.
This may be an impossible task so bear with me. I have the following raw data:
Owner | Account ID | Industry | Industry# | Account # |
Joe | 1 | Plumber | Primary Industry | Primary Account |
Joe | 2 | HVAC | Secondary Industry | Secondary Account |
Bob | 3 | Plumber | Primary Industry | Primary Account |
Bob | 4 | Electrician | Secondary Industry | Secondary Account |
Bob | 5 | Construction | Tertiary Industry | Tertiary Account |
<tbody>
</tbody>
Then I need to append it to this table:
Owner | Primary Industry | Secondary Industry | Tertiary Industry | Primary Account | Secondary Account | Tertiary Account |
Joe | ||||||
Bob |
<tbody>
</tbody>
So that it ends up looking like this:
Owner | Primary Industry | Secondary Industry | Tertiary Industry | Primary Account | Secondary Account | Tertiary Account |
Joe | Plumber | HVAC | 1 | 2 | ||
Bob | Plumber | Electrician | Construction | 3 | 4 | 5 |
<tbody>
</tbody>
I was thinking I could use an index match match, but I'm not able to make it work. Anyone have any solutions? Maybe I need to rearrange the data? It's tough, because I'm writing SQL to pull the raw data the way it is, so I'm a bit limited in how I pull it. Thanks so much for your help.