Hi guys,
I am looking for some help with the problem below.
Basically, I have 2 tables where my goal is to look at the Table1_Count Records, and then based on the value on this field and its Timezone, I would like to look at Table_2 and assign an Account to Table1_Rep field.
Example:
Rep C has 4 records on Timezone CST, 2 on EST, 3 on PST. I would like to look at table 2 and assign to rep C, 4 accounts on timezone CST, 2 on timezone EST, and 3 on timezone PST...and so on and so forth for every record on my Table_1.
Table 1:
| Rep | Timezone | Count Records |
| A | PST | 2 |
| B | PST | 2 |
| C | CST | 4 |
| C | EST | 2 |
| C | PST | 3 |
| D | PST | 1 |
| E | CST | 1 |
| E | EST | 2 |
| E | PST | 8 |
Table 2
| Account | Timezone |
| A | PST |
| B | PST |
| C | CST |
| D | CST |
| E | CST |
| F | EST |
| G | EST |
| H | EST |
| I | EST |
| K | PST |
| L | EST |
| M | CST |
I appreciate any insights. Thank you so much!!